我只是将 kotlin 升级1.2.71
到1.3.0-rc-190
,现在我无法编译我的项目。这是我第一次看到这个错误,我还没有找到任何解决方案,请帮忙!
错误日志:
04:11:56.678 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Internal compiler error. See log for more details
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:110)
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:77)
04:11:56.679 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
我的应用程序 gradle 文件:
apply plugin: "com.android.application"
apply plugin: "kotlin-kapt"
apply plugin: "kotlin-android"
apply plugin: "kotlin-android-extensions"
apply plugin: "androidx.navigation.safeargs"
android {
compileSdkVersion 28
defaultConfig {
/*Config*/
kapt {
arguments {
arg("room.schemaLocation", "$projectDir/schemas".toString())
}
}
}
// buildTypes
buildToolsVersion '28.0.3'
dataBinding.enabled = true
}
androidExtensions { experimental = true }
dependencies {
/* My dependencies */
}
我的安卓工作室版本是 3.2。
编辑 完整错误日志:完整错误日志