Flutter Android: Ein oder mehrere Plugins benötigen eine höhere Android -NDK -Version
Posted: 21 May 2025, 11:44
Ein oder mehrere Plugins erfordern eine höhere Android -NDK -Version. />} < /p>
Aber wenn ich ndkversion < /code> hinzufüge, sieht meine Datei so aus: < /p>
Aber wenn ich ndkversion < /code> hinzufüge, sieht meine Datei so aus: < /p>
Code: Select all
android {
compileSdk 31
ndkVersion 21.3.6528147
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
...
< /code>
Ich erhalte einen anderen Fehler: < /p>
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/qqq/data/qqq/qqq/qqq/android/app/build.gradle' line: 61
* What went wrong:
Could not compile build file '/Users/qqq/data/github/qqq/qqq/android/app/build.gradle'.
> startup failed:
build file '/Users/qqq/data/github/qqq/qqq/android/app/build.gradle': 61: Unexpected input: '{' @ line 61, column 9.
android {
^
1 error