Android Studio TransformException : Error:Execution failed for task ':app:transformClassesWithDexForDebug'

后端 未结 10 1989
抹茶落季
抹茶落季 2020-11-27 20:11

I am getting the exception below when I am trying to run the application using Android Studio:

Error:Execution failed for task \':app:transformClasses

10条回答
  •  清歌不尽
    2020-11-27 20:21

    Modify the module-level build.gradle file

     android {
        ...
    
        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
    

    }

    add dependencies compile 'com.android.support:multidex:1.0.0'

    In your manifest add the MultiDexApplication class

    
    
        ...
    
    

    http://developer.android.com/studio/build/multidex.html

提交回复
热议问题