‘compileDebugJavaWithJavac‘ task (current target is 1.7) and ‘compileDebugKotlin_org.gradle.api.gradleexception: 'compiledebugjavaw
作者:你好赵伟 | 2024-05-28 23:20:30
赞
踩
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’ } }