android - Error:Execution failed for task ':Application:transformClassesWithJarMergingForDebug' -


this question has answer here:

while running android application in android studio, got following error:

error: execution failed task':app:transformclasseswithjarmergingfordebug'.
com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: android/support/annotation/layoutres.class

where error come / how resolve issue?

you have added com.android.support:support-annotations: 2 times. surely, not directly, 1 of dependencies depends on it. run console (inside project folder): gradlew app:dependencies , see depends on support annotations library.

then, exclude dependencies


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -