为了账号安全,请及时绑定邮箱和手机立即绑定

Android添加jar包后报出这样的错

Android添加jar包后报出这样的错

王育民 2016-07-08 18:56:08
Error:Error converting bytecode to dex:Cause: Dex cannot parse version 52 byte code.This is caused by library dependencies that have been compiled using Java 8 or above.If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7'sourceCompatibility = '1.7'to that submodule's build.gradle file.Error:1 error; abortingError:Execution failed for task ':app:transformClassesWithDexForDebug'.> com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process
查看完整描述

1 回答

?
一条小咸鱼

TA贡献457条经验 获得超255个赞


改用Java8?

查看完整回答
反对 回复 2016-07-10
  • 1 回答
  • 0 关注
  • 6473 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信