Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20278

Android: java.lang.IllegalArgumentException when ti.map and ti.geofence modules were added

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 6.0.0
    • Component/s: Android
    • Labels:
      None
    • Environment:

      TiSDK 5.1.2.GA
      Android 5
      ti.map 2.3.4
      ti.geofence 1.1.2

    • Story Points:
      3

      Description

      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

      Stack Trace

      [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
      

      Work around

      Downgrading ti.map to 2.3.1 instead of 2.3.4

      <modules> 
      <module platform="android" version="2.3.1">ti.map</module> 
      <module platform="android" version="1.1.2">ti.geofence</module> 
      </modules> 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                egomez Eduardo Gomez (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20891
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code