我只是将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 */
}
我的android studio版本是3.2。
修改 完整错误日志:Full Error Log