Avengers icon indicating copy to clipboard operation
Avengers copied to clipboard

运行时出错 ( Runtime error)

Open sunshangfeng opened this issue 8 years ago • 3 comments

** jdk1.8.0_45

android studio 2.1 Preview 5

classpath 'com.android.tools.build:gradle:2.1.0-alpha5_ **

`` :app:transformClassesWithDexForDebug

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:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: 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_45\bin\java.exe'' finished with non-zero exit value 1

求帮忙 (Please Help, Thanks)

sunshangfeng avatar Apr 13 '16 05:04 sunshangfeng

I'm having the same issue, could you fix it?

uditmukherjee avatar Apr 22 '16 07:04 uditmukherjee

JDK -> jdk1.7.0_79 A.S -> 2.1RC Gradle Plugin -> 2.1.0-rc1

Bumped versions of gradle plugin & buildTools version here 2b02f19d5a0ca3e36b5370f545036b30fd62a114

saulmm avatar Apr 23 '16 20:04 saulmm

@sunshangfeng 你解决了么? 这个错误

morenever avatar Jun 29 '16 10:06 morenever