java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;

Appcelerator JIRA | Rick Blalock | 1 year ago
  1. 0

    It keeps hanging on dexer. Once I upped the memory size to 512, i finally got an error back (after waiting about 10 minutes). Dexer command: {code} [INFO] Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/androidsdk/platform-tools" "-jar" "/androidsdk/build-tools/21.0.1/lib/dx.jar" "--dex" "--output=/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes.dex" "/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/lib/titanium-verify.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/facebook.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/bolts-android-1.1.2.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/facebooksdk.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.imagefactory/2.2.1/imagefactory.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/map.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/lib/google-play-services.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-base.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-v8.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/aps-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-android.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/jaxen-1.1.1.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-common.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-app.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-ui.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-media.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v4.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-locale.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-network.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/thirdparty.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-xml.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-platform.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-database.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-gesture.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-geolocation.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-utils.jar" {code} Error I finally get back: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL ERROR: [ERROR] java.lang.OutOfMemoryError: Java heap space [ERROR] at java.util.HashMap.resize(HashMap.java:703) [ERROR] at java.util.HashMap.putVal(HashMap.java:628) [ERROR] at java.util.HashMap.put(HashMap.java:611) [ERROR] at com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55) [ERROR] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72) [ERROR] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:729) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) {code} Environment: {code} Android Environment ✓ sdk installed (/androidsdk) ! tools untested version 24.3.4; may or may not work ! platform tools untested version 23; may or may not work ✓ build tools installed (v21.0.1) ✓ adb installed /androidsdk/platform-tools/adb ✓ android installed /androidsdk/tools/android ✓ emulator installed /androidsdk/tools/emulator ✓ mksdcard installed /androidsdk/tools/mksdcard ✓ zipalign installed /androidsdk/build-tools/21.0.1/zipalign ✓ aapt installed /androidsdk/build-tools/21.0.1/aapt ✓ aidl installed /androidsdk/build-tools/21.0.1/aidl ✓ targets installed (40 found) ✓ avds installed (2 found) ✓ ndk installed (r8e (64-bit)) ✓ ndk-build installed (/android-ndk/ndk-build) {code}

    Appcelerator JIRA | 1 year ago | Rick Blalock
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;
  2. 0

    It keeps hanging on dexer. Once I upped the memory size to 512, i finally got an error back (after waiting about 10 minutes). Dexer command: {code} [INFO] Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/androidsdk/platform-tools" "-jar" "/androidsdk/build-tools/21.0.1/lib/dx.jar" "--dex" "--output=/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes.dex" "/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/lib/titanium-verify.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/facebook.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/bolts-android-1.1.2.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/facebooksdk.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.imagefactory/2.2.1/imagefactory.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/map.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/lib/google-play-services.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-base.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-v8.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/aps-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-android.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/jaxen-1.1.1.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-common.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-app.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-ui.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-media.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v4.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-locale.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-network.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/thirdparty.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-xml.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-platform.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-database.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-gesture.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-geolocation.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-utils.jar" {code} Error I finally get back: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1; [ERROR] at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) [ERROR] at com.android.dx.dex.file.DexFile.add(DexFile.java:161) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:732) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] [ERROR] UNEXPECTED TOP-LEVEL ERROR: [ERROR] java.lang.OutOfMemoryError: Java heap space [ERROR] at java.util.HashMap.resize(HashMap.java:703) [ERROR] at java.util.HashMap.putVal(HashMap.java:628) [ERROR] at java.util.HashMap.put(HashMap.java:611) [ERROR] at com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89) [ERROR] at com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55) [ERROR] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98) [ERROR] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72) [ERROR] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137) [ERROR] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93) [ERROR] at com.android.dx.command.dexer.Main.processClass(Main.java:729) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673) [ERROR] at com.android.dx.command.dexer.Main.access$300(Main.java:82) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) [ERROR] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) [ERROR] at com.android.dx.command.dexer.Main.processOne(Main.java:632) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:279) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:245) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:214) [ERROR] at com.android.dx.command.Main.main(Main.java:106) {code} Environment: {code} Android Environment ✓ sdk installed (/androidsdk) ! tools untested version 24.3.4; may or may not work ! platform tools untested version 23; may or may not work ✓ build tools installed (v21.0.1) ✓ adb installed /androidsdk/platform-tools/adb ✓ android installed /androidsdk/tools/android ✓ emulator installed /androidsdk/tools/emulator ✓ mksdcard installed /androidsdk/tools/mksdcard ✓ zipalign installed /androidsdk/build-tools/21.0.1/zipalign ✓ aapt installed /androidsdk/build-tools/21.0.1/aapt ✓ aidl installed /androidsdk/build-tools/21.0.1/aidl ✓ targets installed (40 found) ✓ avds installed (2 found) ✓ ndk installed (r8e (64-bit)) ✓ ndk-build installed (/android-ndk/ndk-build) {code}

    Appcelerator JIRA | 1 year ago | Rick Blalock
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;
  3. 0

    Error when module included

    GitHub | 1 year ago | mattlanham
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Repackage okhttp

    GitHub | 2 years ago | tomquist
    java.lang.IllegalArgumentException: already added: Lcom/squareup/okhttp/Address;
  6. 0

    Microsoft.Office365.OAuth.Xamarin breaks Android build

    Stack Overflow | 2 years ago | Massimo Prota
    java.lang.IllegalArgumentException: already added: Landroid/support/v4/util/TimeUtils;

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;

      at com.android.dx.dex.file.ClassDefsSection.add()
    2. Android SDK's dx Tool
      Main.main
      1. com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122)
      2. com.android.dx.dex.file.DexFile.add(DexFile.java:161)
      3. com.android.dx.command.dexer.Main.processClass(Main.java:732)
      4. com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
      5. com.android.dx.command.dexer.Main.access$300(Main.java:82)
      6. com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
      7. com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
      8. com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
      9. com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
      10. com.android.dx.command.dexer.Main.processOne(Main.java:632)
      11. com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
      12. com.android.dx.command.dexer.Main.runMonoDex(Main.java:279)
      13. com.android.dx.command.dexer.Main.run(Main.java:245)
      14. com.android.dx.command.dexer.Main.main(Main.java:214)
      15. com.android.dx.command.Main.main(Main.java:106)
      15 frames