0

I am getting this error while running the application on device. The error is stated below:

Error:Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes

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: Return code 1 for dex process.

Rob
  • 2,243
  • 4
  • 29
  • 40
siddhi
  • 11
  • 2
  • Well, if classes can't be parsed, it sounds like a syntax error. Check your code carefully and create a [mcve] here if you really want help – OneCricketeer Sep 25 '17 at 12:59
  • Thanks for your instant reply..But i am able compile the project properly.so no issues in it .But while running the application this error is been trigger.If possible help with other solution – siddhi Sep 25 '17 at 13:04
  • Compile it how? That's a Gradle error thrown around the time of compilation... – OneCricketeer Sep 25 '17 at 13:06
  • Build project doesnot show the given error ..only when click on run its shows the error – siddhi Sep 25 '17 at 13:08
  • Add more of the error, please https://stackoverflow.com/questions/21674091/how-to-add-stacktrace-or-debug-option-when-building-android-studio-project – OneCricketeer Sep 25 '17 at 13:12
  • 2
    Added the given code dexOptions { incremental true javaMaxHeapSize "4g" } in build.gradle.This helped to find the location of error where the path doesnot match and solved the issue ..Thanks – siddhi Sep 25 '17 at 14:35

0 Answers0