Skip to content

Android NDK and SDK error messages propose invalid Gradle syntax #109025

@dcharkes

Description

@dcharkes

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 in release: 3.1Found to occur in 3.1has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versiont: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions