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

Android: Ti.Map and Ti.Cloudpush return "already added: Lcom/google/android/gms/games/achievement/Achievement"

    Details

    • Story Points:
      3

      Description

      I'm trying to add Push to my app (iOS/Android) but I'm getting the following error message when I compile the android version:

      [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
      [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/games/achievement/Achievement;
      [ERROR]     at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
      [ERROR]     at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
      [ERROR]     at com.android.dx.command.dexer.Main.processClass(Main.java:490)
      [ERROR]     at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
      [ERROR]     at com.android.dx.command.dexer.Main.access$400(Main.java:67)
      [ERROR]     at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
      [ERROR]     at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
      [ERROR] System Error while compiling Android classes.dex
      [ERROR]     at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
      [ERROR]     at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
      [ERROR]     at com.android.dx.command.dexer.Main.processOne(Main.java:422)
      [ERROR]     at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
      [ERROR]     at com.android.dx.command.dexer.Main.run(Main.java:209)
      [ERROR]     at com.android.dx.command.dexer.Main.main(Main.java:174)
      [ERROR]     at com.android.dx.command.Main.main(Main.java:91)
      [ERROR] 1 error; aborting
      

      Modules added:

      <modules>
              <module platform="android">ti.cloudpush</module>
              <module platform="android">com.acktie.mobile.android.qr</module>
              <module platform="commonjs">ti.cloud</module>
              <module platform="iphone">com.acktie.mobile.ios.qr</module>
              <module platform="android">facebook</module>
              <module platform="android">ti.map</module>
              <module platform="iphone">facebook</module>
          </modules>
      

      other users confirm that ti.cloudpush and ti.map inside the same project will cause this error for them too.

      Thread: http://developer.appcelerator.com/question/155815/already-added-lcomgoogleandroidgmsgamesachievementachievement

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbarber Chris Barber
                Reporter:
                michael Michael Gangolf
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration