java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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.
    via by Tim Statler,
  • 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.
    via by Tim Statler,
  • duplicated dependency in maven
    via Stack Overflow by jonney
    ,
  • Pushclient Module Titanium
    via GitHub by somefakeuser
    ,
    • java.lang.IllegalArgumentException: already added: Lcom/appcelerator/cloudpush/APSCallbackHandler; at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:122) at com.android.dx.dex.file.DexFile.add(DexFile.java:161) at com.android.dx.command.dexer.Main.processClass(Main.java:685) at com.android.dx.command.dexer.Main.processFileBytes(Main.java:634) at com.android.dx.command.dexer.Main.access$600(Main.java:78) at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:572) at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284) at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166) at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144) at com.android.dx.command.dexer.Main.processOne(Main.java:596) at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498) at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264) at com.android.dx.command.dexer.Main.run(Main.java:230) at com.android.dx.command.dexer.Main.main(Main.java:199) at com.android.dx.command.Main.main(Main.java:103)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,