-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
The error message for NDK/SDK versions proposes invalid gradle syntax:
One or more plugins require a higher Android NDK version.
Fix this issue by adding the following to /usr/local/google/home/dacoharkes/src/dart-lang/jni_gen/jni/example/android/app/build.gradle:
android {
ndkVersion 22.1.7171670
...
}
It should be the following:
One or more plugins require a higher Android NDK version.
Fix this issue by adding the following to /usr/local/google/home/dacoharkes/src/dart-lang/jni_gen/jni/example/android/app/build.gradle:
android {
ndkVersion "22.1.7171670"
...
}
Without the quotes Gradle fails to parse the file.
FAILURE: Build failed with an exception.
* Where:
Build file '/usr/local/google/home/dacoharkes/src/dart-lang/jni_gen/jni/example/android/app/build.gradle' line: 28
* What went wrong:
A problem occurred evaluating project ':app'.
> No signature of method: build_16b3mv73oxqhtmgmlwjefvscm.android() is applicable for argument types: (build_16b3mv73oxqhtmgmlwjefvscm$_run_closure2) values: [build_16b3mv73oxqhtmgmlwjefvscm$_run_closure2@54de9eed]
Metadata
Metadata
Assignees
Labels
found in release: 3.0Found to occur in 3.0Found to occur in 3.0found in release: 3.1Found to occur in 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on Android"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.