一个或多个插件需要更高版本的Android NDK。
通过将以下内容添加到 /Users/qqq/data/github/qqq/qqq/android/app/build.gradle 来解决此问题: android { ndkVersion 21.3.6528147 ... }
但如果我添加了 ndkVersion
,我的文件将如下所示:
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'
}
...
我收到不同的错误:
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
""
;) - sosnus