Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'
As the error message suggests you are not excluding the META-INF/LICENSE
file which exists in more than one of your dependencies
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/LICENSE
packagingOptions {
exclude 'META-INF/NOTICE' // will not include NOTICE file
exclude 'META-INF/LICENSE' // will not include LICENSE file
// as noted by @Vishnuvathsan you may also need to include
// variations on the file name. It depends on your dependencies.
// Some other common variations on notice and license file names
exclude 'META-INF/notice'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license'
exclude 'META-INF/license.txt'
}
Error:Execution failed for task ':app:transformClassesWithInstantRunSlicerForDebug'. java.io.IOException:
:app:transformClassesWithInstantRunSlicerForDebug'.
java.io.IOException: Failed to delete
-- try to clean project and rebuild project.
From @Kael: A clean is performed via Build -> Clean Project or Build -> Rebuild Project.
Related Topics
Editing Functionality of Host Card Emulation in Android
Using Adb Logcat with a Real Phone (And Not the Emulator)
Android Listview Row Delete Animation
Android Bluetoothdevice.Getname() Return Null
Error 12501 Authenticating with Google Sign-In
Value of a Global Variable Is Reset After It Is Initialised in Valueeventlistener
Tab Not Taking Full Width on Tablet Device [Using Android.Support.Design.Widget.Tablayout]
How to Change the Style of a Datepicker in Android
Android Gradle: Buildtoolsversion VS Compilesdkversion
What Is a Full Android Database Helper Class for an Existing SQLite Database
How to Create a Database in Android
How to Set the Airplane_Mode_On to "True" or On
Suppress/Block Broadcastreceiver in Another App
Android Java.Lang.Illegalstateexception: Couldn't Read Row 0, Col 0 from Cursorwindow
How to Show Toast in Asynctask in Doinbackground
How to Record Screen and Take Screenshots, Using Android API