Android Studio TransformException : Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’

I have same issue, after few hour research, i found a solution to fix it.

You should fixed build.gradle :

android {

    compileSdkVersion ..
    buildToolsVersion '...'

    defaultConfig {
       ...
       targetSdkVersion ..
       multiDexEnabled true  // this line will solve this problem
   }
}

If the number of method references in your app exceeds the 65K limit, your app may fail to compile.

For information on how to do this, see Selectively compiling APIs into your executable and Building Apps with Over 65K Methods

Leave a Comment