'compiledebugjavawithjavac' task (current target is 1.8) and 'kaptgeneratestubsdebugkotlin' task (current target is 17) jvm target compatibility should be set to the same java version.
我这样解决这个问题
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KaptGenerateStubs).configureEach{
kotlinOptions{jvmTarget = "1.8"}
}
2条答案
按热度按时间zxlwwiss1#
如果遇到类似的问题,必须在Build.Grade(app)中添加此代码
stszievb2#