当前位置:   article > 正文

compileDebugJavaWithJavac‘ task (current target is 1.8) and ‘compileDebugKotlin‘ task (current targe_compiledebugjavawithjavac' task (current target is

compiledebugjavawithjavac' task (current target is 1.8) and 'compiledebugko

'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

解决:

在导入的module的gradle android{ }中加入

kotlinOptions {
    jvmTarget = '1.8'
}
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/639689
推荐阅读
相关标签
  

闽ICP备14008679号