Reputation: 101
Issue after flutter upgrade Updated ndk but not working working fine for flutter web but on andorid showing FAILURE: Build failed with an exception.
Where: Build file 'D:\flutter practice\Instagramclone\android\app\build.gradle' line: 31
What went wrong: A problem occurred evaluating project ':app'.
Could not get unknown property 'ndkVersion' for extension 'flutter' of type FlutterExtension.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 13s Exception: Gradle task assembleDebug failed with exit code 1
Upvotes: 2
Views: 4457
Reputation: 11
For now, writing like this works fine.
android/app/build.gradle ndkVersion "23.1.7779620"
https://developer.android.com/ndk/downloads
Upvotes: 1