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

Unable to build project with latest android tooling

    Details

    • Story Points:
      0
    • Sprint:
      2019 Sprint 22, 2019 Sprint 23, 2019 Sprint 24, 2019 Sprint 25

      Description

      It keeps hanging on dexer. Once I upped the memory size to 512, i finally got an error back (after waiting about 10 minutes).

      Dexer command:

      [INFO]  Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java "-Xmx512M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/androidsdk/platform-tools" "-jar" "/androidsdk/build-tools/21.0.1/lib/dx.jar" "--dex" "--output=/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes.dex" "/Users/rickblalock/titanium_repos/Fish Rules App/build/android/bin/classes" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/lib/titanium-verify.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/facebook.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/bolts-android-1.1.2.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/facebook/4.0.5/lib/facebooksdk.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.imagefactory/2.2.1/imagefactory.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/map.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.map/2.3.1/lib/google-play-services.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-base.jar" "/Users/rickblalock/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-v8.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/aps-analytics.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-android.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/jaxen-1.1.1.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/ti-commons-codec-1.3.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/kroll-common.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/titanium.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-app.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-ui.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-filesystem.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-media.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v4.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/android-support-v7-appcompat.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-locale.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-network.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/thirdparty.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-xml.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-platform.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-database.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-gesture.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-geolocation.jar" "/Users/rickblalock/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.GA/android/modules/titanium-utils.jar"
      

      Error I finally get back:

      [ERROR] Failed to run dexer:
      [ERROR]
      [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
      [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/dynamic/LifecycleDelegate;
      [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:82)
      [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:279)
      [ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:245)
      [ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:214)
      [ERROR]         at com.android.dx.command.Main.main(Main.java:106)
      [ERROR]
      [ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
      [ERROR] java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/gcm/GoogleCloudMessaging$1;
      [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:82)
      [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:279)
      [ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:245)
      [ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:214)
      [ERROR]         at com.android.dx.command.Main.main(Main.java:106)
      [ERROR]
      [ERROR] UNEXPECTED TOP-LEVEL ERROR:
      [ERROR] java.lang.OutOfMemoryError: Java heap space
      [ERROR]         at java.util.HashMap.resize(HashMap.java:703)
      [ERROR]         at java.util.HashMap.putVal(HashMap.java:628)
      [ERROR]         at java.util.HashMap.put(HashMap.java:611)
      [ERROR]         at com.android.dx.ssa.LocalVariableInfo.addAssignment(LocalVariableInfo.java:197)
      [ERROR]         at com.android.dx.ssa.LocalVariableExtractor.processBlock(LocalVariableExtractor.java:180)
      [ERROR]         at com.android.dx.ssa.LocalVariableExtractor.doit(LocalVariableExtractor.java:89)
      [ERROR]         at com.android.dx.ssa.LocalVariableExtractor.extract(LocalVariableExtractor.java:55)
      [ERROR]         at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:49)
      [ERROR]         at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:98)
      [ERROR]         at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:72)
      [ERROR]         at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:297)
      [ERROR]         at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:137)
      [ERROR]         at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:93)
      [ERROR]         at com.android.dx.command.dexer.Main.processClass(Main.java:729)
      [ERROR]         at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
      [ERROR]         at com.android.dx.command.dexer.Main.access$300(Main.java:82)
      [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:279)
      [ERROR]         at com.android.dx.command.dexer.Main.run(Main.java:245)
      [ERROR]         at com.android.dx.command.dexer.Main.main(Main.java:214)
      [ERROR]         at com.android.dx.command.Main.main(Main.java:106)
      

      Environment:

      Android Environment
        ✓  sdk                installed (/androidsdk)
        !  tools              untested version 24.3.4; may or may not work
        !  platform tools     untested version 23; may or may not work
        ✓  build tools        installed (v21.0.1)
        ✓  adb                installed /androidsdk/platform-tools/adb
        ✓  android            installed /androidsdk/tools/android
        ✓  emulator           installed /androidsdk/tools/emulator
        ✓  mksdcard           installed /androidsdk/tools/mksdcard
        ✓  zipalign           installed /androidsdk/build-tools/21.0.1/zipalign
        ✓  aapt               installed /androidsdk/build-tools/21.0.1/aapt
        ✓  aidl               installed /androidsdk/build-tools/21.0.1/aidl
        ✓  targets            installed (40 found)
        ✓  avds               installed (2 found)
        ✓  ndk                installed (r8e (64-bit))
        ✓  ndk-build          installed (/android-ndk/ndk-build)
      

        Attachments

          Activity

            People

            • Assignee:
              amukherjee Abir Mukherjee
              Reporter:
              rblalock Rick Blalock (Inactive)
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code