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
How to Place an Imageview on Top of Another Imageview in Android
Android Check Null or Empty String in Android
Open External Links in the Browser With Android Webview
Getting Simple Json Object Response Using Retrofit Library
How to Select a Video from the Gallery and Get It's Real Path
Flutter:Renderbox Was Not Laid Out: Renderrepaintboundary#58C65 Relayoutboundary=Up1 Needs-Paint
How to Receive Fcm Push Notifications When App Is Killed
How Remove Unnecessary Space Between Cards in Recyclerview
How to Enable/Disable Floatingactionbutton Behavior
R Cannot Be Resolved - Android Error
How to Remove Android Auto-Suggest Underlining in Edittext
How to Use Python to Execute Adb Commands
Android: Textview: Remove Spacing and Padding on Top and Bottom
Full Screen Without Navigation & Status Bars
Android:Strike Out Text With Bold or Thicker Line Than Default Strike_Thru_Text_Flag
How to Show List of String in Textview on Android
Android Q, Programmatically Connect to Different Wifi Ap for Internet
Android Navigationview: Reduce Space Between Icon and Text and 'Itembackground' Not Working