java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;

Appcelerator JIRA | Eduardo Gomez | 1 year 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

    Android I can't build in 4.1.0

    GitHub | 2 years ago | ldpalazon
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;
  2. 0

    App using analytics.google fails to build on Android for 5.0.0.GA

    GitHub | 2 years ago | shodanuk
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;
  3. 0

    h6.Steps to reproduce 1) Create a sample app 2) Attach both modules 3) Run through CLI: $ appc run -p android -T device 4) Monitor console output h6.Stack Trace {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource; [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:83) [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:280) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:246) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:215) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] 1 error; aborting {code} h6.Work around Downgrading ti.map to 2.3.1 instead of 2.3.4 {code} <modules> <module platform="android" version="2.3.1">ti.map</module> <module platform="android" version="1.1.2">ti.geofence</module> </modules> {code}

    Appcelerator JIRA | 1 year ago | Eduardo Gomez
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    h6.Steps to reproduce 1) Create a sample app 2) Attach both modules 3) Run through CLI: $ appc run -p android -T device 4) Monitor console output h6.Stack Trace {code} [ERROR] Failed to run dexer: [ERROR] [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource; [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:83) [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:280) [ERROR] at com.android.dx.command.dexer.Main.run(Main.java:246) [ERROR] at com.android.dx.command.dexer.Main.main(Main.java:215) [ERROR] at com.android.dx.command.Main.main(Main.java:106) [ERROR] 1 error; aborting {code} h6.Work around Downgrading ti.map to 2.3.1 instead of 2.3.4 {code} <modules> <module platform="android" version="2.3.1">ti.map</module> <module platform="android" version="1.1.2">ti.geofence</module> </modules> {code}

    Appcelerator JIRA | 1 year ago | Eduardo Gomez
    java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;
  6. 0

    BuildConfig has already been added to output. Please remove duplicate copies. Android

    Stack Overflow | 2 years ago | witco
    java.lang.IllegalArgumentException: already added: Lcom/test/BuildConfig;

    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/maps/LocationSource;

      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:83)
      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:280)
      13. com.android.dx.command.dexer.Main.run(Main.java:246)
      14. com.android.dx.command.dexer.Main.main(Main.java:215)
      15. com.android.dx.command.Main.main(Main.java:106)
      15 frames