java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler;

Appcelerator JIRA | Tim Statler | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Steps to repro: 1. Create a new Mobile App Project in Studio or CLI 2. In Tiapp.xml overview, add the ti.cloudpush module. 3. Build for Android, from Studio or CLI. Result: Following error: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler; [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:685) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634) [ERROR] at com.android.dx.command.dexer.Main.access$600(Main.java:78) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572) [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:596) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:230) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:199) [ERROR] at com.android.dx.command.Main.main(Main.java:103) [ERROR] 1 error; aborting {code} After removing ti.cloudpush from Tiapp.xml, I can build without error.

    Appcelerator JIRA | 3 years ago | Tim Statler
    java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler;
  2. 0

    Steps to repro: 1. Create a new Mobile App Project in Studio or CLI 2. In Tiapp.xml overview, add the ti.cloudpush module. 3. Build for Android, from Studio or CLI. Result: Following error: {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler; [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:685) [ERROR] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634) [ERROR] at com.android.dx.command.dexer.Main.access$600(Main.java:78) [ERROR] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572) [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:596) [ERROR] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498) [ERROR] at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:230) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:199) [ERROR] at com.android.dx.command.Main.main(Main.java:103) [ERROR] 1 error; aborting {code} After removing ti.cloudpush from Tiapp.xml, I can build without error.

    Appcelerator JIRA | 3 years ago | Tim Statler
    java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler;
  3. 0

    I've tried to integrate the latest version of your build but...

    GitHub | 2 years ago | ydeshayes
    java.lang.IllegalArgumentException: already added: Lcom/acktie/mobile/android/camera/CameraCallback;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Class it.gmariotti.cardslib.library.Constants.IntentManager has already been added to output. Please remove duplicate copies.

    GitHub | 3 years ago | itsmechlark
    java.lang.IllegalArgumentException: already added: Lit/gmariotti/cardslib/library/Constants$IntentManager;
  6. 0

    Android Studio & Gradle: Multiple dex files

    Stack Overflow | 2 years ago | Androider
    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/appcelerator/cloudpush/APSCallbackHandler;

      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:685)
      4. com.android.dx.command.dexer.Main.processFileBytes(Main.java:634)
      5. com.android.dx.command.dexer.Main.access$600(Main.java:78)
      6. com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572)
      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:596)
      11. com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
      12. com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
      13. com.android.dx.command.dexer.Main.run(Main.java:230)
      14. com.android.dx.command.dexer.Main.main(Main.java:199)
      15. com.android.dx.command.Main.main(Main.java:103)
      15 frames