Error:Execution Failed For Task ':App:Transformclasseswithjarmergingfordebug'

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



Leave a reply



Submit