简体   繁体   中英

Android Studio 2.1 Gradle sync error after implemented AAR library

I have added AAR Library file into Project. After successfully added, After implementing the aar library into my main code, while gradle sync , am getting these exception..

Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error:1 error; aborting
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: Return code 1 for dex process

I have tried Build Clean, Rebuild, Restart to Studio, many times Gradle sync,and Multidex also enabled true getting the above mentioned error.

anyone help me to solve this problem.

Finally I cleared the problem.

I have Followed this Steps in Android Studio 2.1: File-Settings-Build,Execution,Deployment select - Instant Run - UnCheck the First Option "Enable Instant Run to hot swap code/resource changes on deploy(default enabled)"

then, finally, Clean and Rebuild and Run the Project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM