1

While running my android application in android studio, I got the following error:

Error: Execution failed for task':App:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/LayoutRes.class

Where does that error come from / how to resolve that issue?

1 Answers1

1

You have added com.android.support:support-annotations: two times. Surely, not directly, but one of your dependencies depends on it. Run from console (inside project folder): gradlew app:dependencies and see what depends on support annotations library.

Then, exclude dependencies

R. Zagórski
  • 20,020
  • 5
  • 65
  • 90
  • howto overcome this issue@R. Zago`rski –  Jun 28 '16 at 09:48
  • I have added a description. Read it carefully and follow. – R. Zagórski Jun 28 '16 at 09:55
  • Information:Modules "App-App", "google-play-services_lib", "ActionBarSherlock", "FacebookSDK", "library" and 2 others were fully rebuilt due to project configuration/dependencies changes i got this one @ R. Zagórski –  Jun 28 '16 at 10:06