标题: ‘compileDebugJavaWithJavac‘ task (current target is 1.8) and ‘compi [打印本页] 作者: 玛卡巴卡的卡巴卡玛 时间: 2024-9-30 18:20 标题: ‘compileDebugJavaWithJavac‘ task (current target is 1.8) and ‘compi '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.
出现这种环境是因为你电脑安装的jdk版本是1.8,而你Android studio设置为17,这就要求你在电脑端升级安装17版本的jdk,否则就编译不了。
就是下面这里,选择了jdk8: