Android - Transform Classes With Dex for Debug

Android - transform Classes With Dex For Debug

Adding the following code to build.gradle app module solved my problem

android{
defaultConfig {

// Enabling multidex support.
multiDexEnabled true
}


dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
//...
compile 'com.android.support:multidex:1.0.0'
}

Android - Transform Classes With Multidexlist For Debug - Instagram JSON Parser

I had a same issue. In my app I am using guava-retrying library, which was fetching google guava library version 21. Guava version 21 requires JDK 1.8 without providing back porting support and this was causing this error in my case.

I was able to solve it by including the guava-retrying library so that it uses version 19.0 of guava library:

compile ("com.github.rholder:guava-retrying:2.0.0") {
exclude group: 'com.google.guava', module: 'guava'
}
compile 'com.google.guava:guava:19.0'

Transform Classes With Dex For Debug is making Windows crash

In the end, it was two problems mixed:

  • I was using the new Windows Terminal which is still in beta so I guess the shutdown problem was something to do with it, because I changed to normal good ol' cmd and the shutdown problem disappeared.
  • The actual error in the compilation process was actually the setup of multidex. I was not extending the MultiDexApplication class.

Thank you all.

Error:Execution failed for task ':app:transformClassesEnhancedWithInstantReloadDexForDebug'

Adding the following code to 'build.gradle' app module solved my problem:

dependencies {
...
compile 'com.android.support:multidex:1.0.0'
...
}


Related Topics



Leave a reply



Submit