【发布时间】:2022-08-14 00:30:49
【问题描述】:
我从 github 克隆了 kickstarter 并面临这个错误
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
useIR = true
}
我曾尝试重建、清理项目但无法解决此问题 并且我没有发现类似的问题
A problem occurred evaluating project \':app\'.
无法为 org.jetbrains.kotlin.gradle.dsl.KotlinJvmOption 类型的对象设置未知属性 \'useIR\'
// Copy google-services.json from variant directory to root of app gradle.taskGraph.beforeTask { Task task -> if (task.name ==~ /process.*GoogleServices/) { android.applicationVariants.all { variant -> if (task.name ==~ /(?i)process${variant.name}GoogleServices/) { copy { from \"src/${variant.name}\" into \'.\' include \'google-services.json\' } } } } }我不确定这是否有帮助,但此错误无法解决 \'task\' 在构建 gradle 中,这是唯一的错误
标签: java android kotlin github build.gradle