在android/build.gradle下增加(临时性解决方案),注意,要在这段前执行
subprojects {
project.evaluationDependsOn(":app")
}
subprojects {
afterEvaluate { project ->
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 34
buildToolsVersion "34.0.0"
}
}
}
}
评论