Duplicate class found android studio

  1. Build failure on Android Studio: Duplicate Class · Issue #435 · jMetal/jMetal · GitHub
  2. Duplicate class error with latest Android Studio SDK · Issue #1061 · watson
  3. Android Duplicate Class Found in Modules (Exclude packages)
  4. android


Download: Duplicate class found android studio
Size: 65.32 MB

Build failure on Android Studio: Duplicate Class · Issue #435 · jMetal/jMetal · GitHub

Duplicate class java_cup.runtime.ComplexSymbolFactory found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26) and jetified-java-cup-11b-runtime-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26) Duplicate class java_cup.runtime.ComplexSymbolFactory$ComplexSymbol found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26) and jetified-java-cup-11b-runtime-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26) Duplicate class java_cup.runtime.ComplexSymbolFactory$Location found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26) and jetified-java-cup-11b-runtime-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26) Duplicate class java_cup.runtime.DefaultSymbolFactory found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26) and jetified-java-cup-11b-runtime-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26) Duplicate class java_cup.runtime.Scanner found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b:2015.03.26) and jetified-java-cup-11b-runtime-2015.03.26 (nz.ac.waikato.cms.weka.thirdparty:java-cup-11b-runtime:2015.03.26) Duplicate class java_cup.runtime.Symbol found in modules jetified-java-cup-11b-2015.03.26 (nz.ac.waika...

Duplicate class error with latest Android Studio SDK · Issue #1061 · watson

Duplicate class javax.annotation.CheckForNull found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.CheckForSigned found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.CheckReturnValue found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.Detainted found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.MatchesPattern found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.MatchesPattern$Checker found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.Nonnegative found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr305-3.0.2.jar (com.google.code.findbugs:jsr305:3.0.2) Duplicate class javax.annotation.Nonnegative$Checker found in modules annotations-3.0.1.jar (com.google.code.findbugs:annotations:3.0.1) and jsr30...

Android Duplicate Class Found in Modules (Exclude packages)

Duplicate class com.google.api.client.http.apache.ApacheHttpRequest found in modules google-http-client-1.29.1.jar (com.google.http-client:google-http-client:1.29.1) and google-http-client-apache-2.0.0.jar (com.google.http-client:google-http-client-apache:2.0.0) Usually the solution involve removing packages from libraries which uses the conflicting java library Edit Module:app build.gradle android Sometimes the Android implementation and Java implementation differs greatly, such as protobuf-lite and protobuf-java. Excluding either one packages could solve compilation error, but you will bump into runtime error when the underlying implementation is not found.

android

In my project there are two different external libraries // TheoPlayer Android SDK implementation ':theoplayerApi21@aar' // Pushly notification SDK implementation 'com.pushly.android:pushsdk:1.1.9' when I tried to run the app I get following error: Duplicate class a.a found in modules jetified-pushsdk-1.1.9-runtime (com.pushly.android:pushsdk:1.1.9) and jetified-theoplayerApi21-runtime (:theoplayerApi21:) Duplicate class b.a found in modules jetified-pushsdk-1.1.9-runtime (com.pushly.android:pushsdk:1.1.9) and jetified-theoplayerApi21-runtime (:theoplayerApi21:) Duplicate class c.a found in modules jetified-pushsdk-1.1.9-runtime (com.pushly.android:pushsdk:1.1.9) and jetified-theoplayerApi21-runtime (:theoplayerApi21:) What I understood- both the libraries are trying to obfuscate their classes, but they are giving same names to the package and classes. When I searched for solutions- they say exclude the module but I would have to keep both classes as they are not old and new versions of same libraries. Both are different. I guess the solution could be- • to tell both libraries to respect each other's obfuscation and name properly [but I wonder why other external libraries are not in the list?] • not allow one of the external library to obfuscate [but I am not using proGuard in my project] I am trying to find out how to do it. Any suggestions?