eclipse 项目移植到 android studio 无法生成apk

有三个错误。在stackoverflow上看到有类似情况,说项目里有重复的jar。我没发现项目里有重复的jar。
1.
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.
2.
Error:1 error; aborting:app:transformClassesWithDexForDebug FAILED
3.
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:
Process 'command 'C:\Program Files\Java\jdk1.8.0_92\bin\java.exe''
finished with non-zero exit value 1
app下的build.gradle

2016-05-05 14:48 3 条评论 分享
已邀请:

要回复问题请先登录注册

退出全屏模式 全屏模式 回复