当前位置:   article > 正文

‘compileDebugJavaWithJavac‘ task (current target is 1.7) and ‘compileDebugKotlin_org.gradle.api.gradleexception: 'compiledebugjavaw

org.gradle.api.gradleexception: 'compiledebugjavawithjavac' task (current ta
‘compileDebugJavaWithJavac’ task (current target is 1.7) and ‘compileDebugKotlin’ task (currenttarget is 1.8) jvm target compatibility should be set to the same Java version.

解决方案

sdk 改为30
build.gradle改为3.6.4
改完如果有下面错误

error: resource android:attr/lStar not found.

解决方案

    configurations.all {
    resolutionStrategy {
    force ‘androidx.core:core:1.6.0’
    force ‘androidx.core:core-ktx:1.6.0’
    }
    }

    
    
    • 1
    声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/639695
    推荐阅读
    相关标签
      

    闽ICP备14008679号