Execution failed for task :app:transformClassesWithJarMergingForDebug
You are adding this line
compile fileTree(dir: 'libs', include: ['*.jar'])
So remove the redundancy lines
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
}
OR
Remove this line
compile fileTree(dir: 'libs', include: ['*.jar'])
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile files('libs/apache-httpcomponents-httpclient.jar')
compile files('libs/apache-httpcomponents-httpcore.jar')
//compile files('libs/java-json.jar')
//compile files('libs/android-support-v4.jar')
compile files('libs/commons-codec-1.10.jar')
compile files('libs/commons-io-2.4.jar')
compile files('libs/commons-lang3-3.4.jar')
}
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android 2
Android Studio Menu:
Build/Clean Project
Update old dependencies
from this answer
and make sure your lib folder doesn't have a duplicate library that already in you build.gradle
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'
In terminal execute in root project folder:
./gradlew clean
It helped me.
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. while using firebase in my project for UI Authentication
Your version of your Firebase SDKs does not match the version of your firebase-ui-auth SDK. There is a table that describes the proper versioning requirements in the documentation. SDK version 10.0.1 does not match up to firebase-ui version 2.0.1 as you have it now. SDK version 10.0.1 matches with firebase-ui 1.1.1.
By the way, your Firebase dependencies are very old. Consider upgrading them.
Related Topics
How to Create Preference Activity and Preference Fragment on Android
Error Importing Holoeverywhere
Ionic Build Android | Error: No Installed Build Tools Found. Please Install the Android Build Tools
Check If Correct Google Play Service Available: "Unfortunately Application Has Stopped Working"
Fragmentcontainerview Using Findnavcontroller
How to Keep My Android Service Running When the Screen Is Turned Off
Change Image of Imageview Programmatically in Android
How to Print PDF Using Android 4.4 Printing Framework
No Activity Found to Handle Intent:Android.Intent.Action.View
How to Shrink the Drawable on a Button
Differencebetween Android Margin Start/End and Right/Left
How to Call Wi-Fi Settings Screen from My Application Using Android
How to Add Items to a Spinner in Android
What Will Happen to the Sharedpreferences on Update an Android App
Error: Status{Statuscode=Developer_Error, Resolution=Null}
How to Pass a View's Onclick Event to Its Parent on Android