我在执行gradleassembleRelease进行打包apk时爆出了以下错误:Dex:Errorconvertingbytecodetodex:Cause:Dexcannotparseversion52bytecode.ThisiscausedbylibrarydependenciesthathavebeencompiledusingJava8orabove.Ifyouareusingthe'java'gradleplugininalibrarysubmoduleaddtargetCompatibility='1.7'sourceCompatibility='1.7'tothatsubmodule'sbuild.gradlefile项目当中没有使用java1.8的特性呀,但是我机器上面安装的JDK是1.8的PSD:\MainNewMonitorZky\app>java-versionjavaversion"1.8.0_101"Java(TM)SERuntimeEnvironment(build1.8.0_101-b13)JavaHotSpot(TM)64-BitServerVM(build25.101-b13,mixedmode)PSD:\MainNewMonitorZky\app>各种googlebaidu没有效果呀!有人遇到过吗?
添加回答
举报
0/150
提交
取消