StackOverflowError while Task compileDebugJavaWithJavac 在 android.databinding.tool.expr.Expr.isDynamic
StackOverflowError while Task compileDebugJavaWithJavac at android.databinding.tool.expr.Expr.isDynamic
当我使用“gradlew assembleDebug”cmd 构建我的项目时,会出现这些错误。我不知道我犯了什么错误。希望有人能帮助我。
堆栈跟踪:
* What went wrong:
Execution failed for task ':train:compileDebugJavaWithJavac'.
Caused by: java.lang.WhosebugError
at android.databinding.tool.expr.Expr.isDynamic(Expr.java:351)
at android.databinding.tool.expr.Expr.isAnyChildDynamic(Expr.java:358)
at android.databinding.tool.expr.Expr.isDynamic(Expr.java:351)
at android.databinding.tool.expr.Expr.isAnyChildDynamic(Expr.java:358)
Gradle: gradle-5.5.1-bin.zip
Android Gradle 插件:com.android.tools.build:gradle:3.5.4
build.gradle:
dataBinding {
enabled = true
}
dependencies {
annotationProcessor "org.androidannotations:androidannotations:4.8.0"
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0'
compile 'androidx.lifecycle:lifecycle-runtime:2.0.0'
compile 'androidx.arch.core:core-runtime:2.0.0@aar'
compile 'androidx.lifecycle:lifecycle-extensions:2.0.0@aar'
}
已修复:将 AGP 从 3.5.4 升级到 4.0。
当我使用“gradlew assembleDebug”cmd 构建我的项目时,会出现这些错误。我不知道我犯了什么错误。希望有人能帮助我。
堆栈跟踪:
* What went wrong:
Execution failed for task ':train:compileDebugJavaWithJavac'.
Caused by: java.lang.WhosebugError
at android.databinding.tool.expr.Expr.isDynamic(Expr.java:351)
at android.databinding.tool.expr.Expr.isAnyChildDynamic(Expr.java:358)
at android.databinding.tool.expr.Expr.isDynamic(Expr.java:351)
at android.databinding.tool.expr.Expr.isAnyChildDynamic(Expr.java:358)
Gradle: gradle-5.5.1-bin.zip
Android Gradle 插件:com.android.tools.build:gradle:3.5.4
build.gradle:
dataBinding {
enabled = true
}
dependencies {
annotationProcessor "org.androidannotations:androidannotations:4.8.0"
annotationProcessor 'androidx.lifecycle:lifecycle-compiler:2.0.0'
compile 'androidx.lifecycle:lifecycle-runtime:2.0.0'
compile 'androidx.arch.core:core-runtime:2.0.0@aar'
compile 'androidx.lifecycle:lifecycle-extensions:2.0.0@aar'
}
已修复:将 AGP 从 3.5.4 升级到 4.0。