[AC-343] Ti Modules causing conflict
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Cannot Reproduce |
Resolution Date | 2015-11-21T18:42:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules, Titanium SDK & CLI |
Labels | android, cloudpush, map, module |
Reporter | Paul Flood |
Assignee | Sharif AbuDarda |
Created | 2015-09-10T16:42:51.000+0000 |
Updated | 2016-06-22T08:12:32.000+0000 |
Description
So after updating Appcelerator Studio to 4.1.1.201507141126 I attempted to build my app again and make changes but got the following error.
[INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac "-J-Xmx256M" "-encoding" "utf8" "-bootclasspath" "/Users/paul/Work/Spudatron/Production/SDKs/Android/platforms/android-22/android.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/kroll-v8.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-analytics.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/aps-analytics.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-android.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/jaxen-1.1.1.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/ti-commons-codec-1.3.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/kroll-common.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/titanium.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-app.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-ui.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-filesystem.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-media.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-appcompat.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/android-support-v4.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/android-support-v7-appcompat.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-locale.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-network.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/thirdparty.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-xml.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-utils.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-geolocation.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-accelerometer.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-contacts.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-map.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-calendar.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-gesture.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-platform.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-database.jar:/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/dk.napp.drawer/1.1.5/nappslide.jar:/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/yy.hasmenu/0.1/hasmenu.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/map.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/lib/google-play-services-base.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/lib/google-play-services-map.jar:/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/analytics.google/3.1.0/analytics.google.jar:/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/analytics.google/3.1.0/lib/google-play-services.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar:/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/kroll-apt.jar:/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/lib/titanium-verify.jar:Manifest.class:R.class:ApplicationStylesheet.class:ParkviaBetaAndroidActivity.class:ParkviaBetaAndroidAppInfo.class:ParkviaBetaAndroidApplication.class" "-d" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/build/android/java-sources.txt"
[INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/paul/Work/Spudatron/Production/SDKs/Android/platform-tools" "-jar" "/Users/paul/Work/Spudatron/Production/SDKs/Android/build-tools/23.0.1/lib/dx.jar" "--dex" "--output=/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/build/android/bin/classes.dex" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/build/android/bin/classes" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/lib/titanium-verify.jar" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/dk.napp.drawer/1.1.5/nappslide.jar" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/yy.hasmenu/0.1/hasmenu.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/map.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/lib/google-play-services-base.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.map/2.3.3/lib/google-play-services-map.jar" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/analytics.google/3.1.0/analytics.google.jar" "/Users/paul/Work/Spudatron/Production/Mobile App Development/Appcelerator Studio/ParkVia Beta - Android/modules/android/analytics.google/3.1.0/lib/google-play-services.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/cloudpush.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/aps-cloudpush-1.1.4.jar" "/Users/paul/Library/Application Support/Titanium/modules/android/ti.cloudpush/3.4.0/lib/google-play-services-gcm.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/kroll-v8.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-analytics.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/aps-analytics.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-android.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/jaxen-1.1.1.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/ti-commons-codec-1.3.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/kroll-common.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/titanium.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-app.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-ui.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-filesystem.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-media.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-appcompat.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/android-support-v4.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/android-support-v7-appcompat.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-locale.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-network.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/thirdparty.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-xml.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-utils.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-geolocation.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-accelerometer.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-contacts.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-map.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-calendar.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-gesture.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-platform.jar" "/Users/paul/Library/Application Support/Titanium/mobilesdk/osx/4.1.1.GA/android/modules/titanium-database.jar"
[ERROR] Application Installer abnormal process termination. Process exit value was 1
[ERROR] : Failed to run dexer:
[ERROR] :
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/LocationSource;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/GoogleMap$4;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/StreetViewPanorama$OnStreetViewPanoramaChangeListener;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/StreetViewPanoramaFragment;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/GoogleMap$InfoWindowAdapter;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/MapsInitializer;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/MapFragment;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/GoogleMap$OnMyLocationButtonClickListener;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/maps/UiSettings;
[ERROR] :
[ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] : java.lang.RuntimeException: Translation has been interrupted
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608)
[ERROR] : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
[ERROR] : at com.android.dx.command.dexer.Main.run(Main.java:277)
[ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:245)
[ERROR] : at com.android.dx.command.Main.main(Main.java:106)
[ERROR] : Caused by: java.lang.InterruptedException: Too many errors
[ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600)
[ERROR] : ... 4 more
TRACE | titanium exited with exit code 1
ERROR | Error: ti run exited with error code 1
at ChildProcess.<anonymous> (/Users/paul/.appcelerator/install/4.1.3/package/node_modules/appc-cli-titanium/plugins/run.js:84:66)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:820:12)
I found this post online http://stackoverflow.com/questions/13291697/android-illegalargumentexception-already-added which references that they're are duplicate JAR's being called.
On looking into the issue I found that ti.cloudpush (now 3.4.0) and ti.map (now 2.3.3) have been updated with the latest Appcelerator Studio and Ti SDK builds. Both seem to contain in their /lib directory use the filename google-play-services-base.jar, the previous versions use the filename google-play-services.jar.
These previous versions ti.cloudpush 3.3.8 and ti.map 2.3.1 don't through up the error so I am assuming the conflict is with these files.
Can someone confirm there is an issue with this? Rolling back is a temporary solution.
I'm having the same issue but on SDK 5.0.0.GA And when using Ti.Ma 2.3.3, and Ti.GA I get the same error. Rolling back to 2.3.1 fixes the issue.
Hello [~ulizama], This is not a bug in SDK 5.0.2.GA and 5.1.0.v20151023172822. I have tested it. The modules ti.cloudpush (now 3.4.0) and ti.map (now 2.3.4) in Android does not cause any conflict in the project. Try updating to latest version. Thanks.
It's not a bug but it creates an almost intractable problem for those wanting to use either their own modules or 3rd party modules that make use of Google Play Services. The problem is that everyone designs their modules to work with a particular version of Google Play Services and then they distribute that version with the module. If I design or use a module that uses a different version of Google Play Services and include that library, then when you try to do a build, Studio and the Android build tools can't figure out which Play Services library methods to use and you get errors because of the duplicate code from different versions of Play Services. An easy test is to try to integrate the PushWoosh Android module together with Ti.Map and see what happens. https://github.com/Pushwoosh/pushwoosh-appcelerator-titanium/tree/master/Push-Notifications-Module/modules/android/com.pushwoosh.module/1.1.0 Just add Ti.Map and the PushWoosh module to a default mobile app project and build for Android - and you get these errors. {panel:title=Console} Operating System Name = Mac OS X Version = 10.10.5 Architecture = 64bit # CPUs = 4 Memory = 34359738368 Node.js Node.js Version = 0.12.7 npm Version = 2.11.3 Titanium CLI CLI Version = 5.0.5 Titanium SDK SDK Version = 5.1.1.GA SDK Path = /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA Target Platform = android Command /usr/local/bin/node /Users/jrf/.appcelerator/install/5.1.0/package/node_modules/appc-cli-titanium/node_modules/titanium/bin/titanium build --platform android --log-level trace --sdk 5.1.1.GA --project-dir /Users/jrf/Studio/moduleTest --target device --android-sdk /Users/jrf/Library/android-sdk-macosx --device-id 05157df5094b6916 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 54650 --username jrf@acm.org --password Racc00ns --plugin-paths /Users/jrf/.appcelerator/install/5.1.0/package/node_modules --config-file /var/folders/t3/s18yk78s7tdfs4tr9lq0ckb00000gn/T/build-1448911096972.json --no-banner {color:green}[INFO] : Found Titanium module id=ti.map version=2.3.4 platform=android deploy-type=test path=/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4 [INFO] : Found Titanium module id=com.pushwoosh.module version=1.1.0 platform=android deploy-type=test path=/Users/jrf/Library/Application Support/Titanium/modules/android/com.pushwoosh.module/1.1.0{color} [INFO] : Deploy type: test [INFO] : Building for target: device [INFO] : Building for device: 05157df5094b6916 [INFO] : Targeting Android SDK API: 23 [INFO] : Building for the following architectures: armeabi, armeabi-v7a, x86 [INFO] : Signing with keystore: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/dev_keystore (tidev) [INFO] : Debugging disabled [INFO] : Profiler disabled [INFO] : Forcing rebuild: /Users/jrf/Studio/moduleTest/build/android/build-manifest.json does not exist [INFO] : JavaScript files need to be encrypted [INFO] : Processing JavaScript files [INFO] : Encrypting JavaScript files: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/titanium_prep.macos "com.phondini.moduleTest" "/Users/jrf/Studio/moduleTest/build/android/assets" "app.js" "_app_props_.json" [INFO] : Writing /Users/jrf/Studio/moduleTest/build/android/bin/assets/app.json [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-analytics.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-android.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-app.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-filesystem.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-media.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-locale.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-network.res.zip [INFO] : Extracting module resources: /Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-xml.res.zip [INFO] : No aidl files to compile, continuing [INFO] : Generating i18n files [INFO] : Generating /Users/jrf/Studio/moduleTest/build/android/res/values/theme.xml [INFO] : Packaging application: /Users/jrf/Library/android-sdk-macosx/build-tools/23.0.0/aapt "package" "-f" "-m" "-J" "/Users/jrf/Studio/moduleTest/build/android/gen" "-M" "/Users/jrf/Studio/moduleTest/build/android/AndroidManifest.xml" "-A" "/Users/jrf/Studio/moduleTest/build/android/bin/assets" "-S" "/Users/jrf/Studio/moduleTest/build/android/res" "-I" "/Users/jrf/Library/android-sdk-macosx/platforms/android-23/android.jar" "-F" "/Users/jrf/Studio/moduleTest/build/android/bin/app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:com.google.android.gms" "-S" "/var/folders/t3/s18yk78s7tdfs4tr9lq0ckb00000gn/T/1151030-46754-1imgpmg/res" "-S" "/var/folders/t3/s18yk78s7tdfs4tr9lq0ckb00000gn/T/1151030-46754-nhy567/res" "-S" "/var/folders/t3/s18yk78s7tdfs4tr9lq0ckb00000gn/T/1151030-46754-87g61k/res" [INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/jrf/Library/android-sdk-macosx/platforms/android-23/android.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/kroll-v8.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-analytics.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/aps-analytics.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-android.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/jaxen-1.1.1.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/ti-commons-codec-1.3.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/kroll-common.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/titanium.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-app.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-ui.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-filesystem.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-media.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-appcompat.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/android-support-v4.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/android-support-v7-appcompat.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-cardview.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/cardview-v7-23.0.1.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-locale.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-network.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-xml.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/map.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services-base.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services-map.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/com.pushwoosh.module/1.1.1/pushnotifications.jar:/Users/jrf/Library/Application Support/Titanium/modules/android/com.pushwoosh.module/1.1.1/lib/Pushwoosh.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/kroll-apt.jar:/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/lib/titanium-verify.jar:Manifest.class:R.class:AssetCryptImpl.class:ModuletestActivity.class:ModuletestAppInfo.class:ModuletestApplication.class" "-d" "/Users/jrf/Studio/moduleTest/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/jrf/Studio/moduleTest/build/android/java-sources.txt" [INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/jrf/Library/android-sdk-macosx/platform-tools" "-jar" "/Users/jrf/Library/android-sdk-macosx/build-tools/23.0.0/lib/dx.jar" "--dex" "--output=/Users/jrf/Studio/moduleTest/build/android/bin/classes.dex" "/Users/jrf/Studio/moduleTest/build/android/bin/classes" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/lib/titanium-verify.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/map.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services-base.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services-map.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/ti.map/2.3.4/lib/google-play-services.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/com.pushwoosh.module/1.1.1/pushnotifications.jar" "/Users/jrf/Library/Application Support/Titanium/modules/android/com.pushwoosh.module/1.1.1/lib/Pushwoosh.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/kroll-v8.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-analytics.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/aps-analytics.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-android.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/jaxen-1.1.1.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/ti-commons-codec-1.3.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/kroll-common.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/titanium.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-app.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-ui.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-filesystem.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-media.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-appcompat.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/android-support-v4.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/android-support-v7-appcompat.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-cardview.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/cardview-v7-23.0.1.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-locale.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-network.jar" "/Users/jrf/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA/android/modules/titanium-xml.jar" {color:red}[ERROR] : Failed to run dexer: [ERROR] : [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzg; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zze; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzh; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zze$zza; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzf; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzc; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzf$zza$zza; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zzd$zza; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/signin/internal/zze$zza$zza;{color} [ERROR] : [ERROR] : UNEXPECTED TOP-LEVEL EXCEPTION: [ERROR] : java.lang.RuntimeException: Translation has been interrupted [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:608) [ERROR] : at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311) [ERROR] : at com.android.dx.command.dexer.Main.run(Main.java:277) [ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:245) [ERROR] : at com.android.dx.command.Main.main(Main.java:106) [ERROR] : Caused by: java.lang.InterruptedException: Too many errors [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:600) [ERROR] : ... 4 more 2015-11-30T19:19:01.490Z | TRACE | titanium exited with exit code 1 2015-11-30T19:19:01.491Z | ERROR | Error: ti run exited with error code 1 at ChildProcess.
Let me add by stating that the problem is further complicated by the fact that it is almost impossible to figure out what version of Google Play Services the Titanium cut-down libraries are built from. If we knew that, then we could try to build compatible cut-down libraries to support third-party modules.
How is this issue marked "resolved" when it isn't? I encountered the same issue with the latest modules specified in tiapp.xml for ti.cloudpush and ti.map for android. The ti.cloudpush version is 3.4.1 and ti.map version is 2.3.8. Perhaps the problem is compounded when I use the analytics.google module from https://github.com/Sitata/titanium-google-analytics. There is no way that developers can keep up with this, so please find a "correct" solution to fix this issue. UPDATE: Once I removed the analytics.google module AND ti.cloudpush module references, the issue went away. This is clearly not acceptable.
I will second Parijat's comments. We've had to build custom Google Play jar files in order to address the different needs of different modules from Ti, third-parties and our own modules. As I said before, it would be easier if the Google Play jar files identified what version they were built from but that is missing. It's a mess. As a test, just try to build any Ti project with Ti Android modules and third-party Android modules. Bad things almost always happen as per this bug.
We are having the same problem with ti.map for Android. Only when we remove ti.googleanalytics are we able to build. So, echoing Parijat, the issue doesn't seem resolved at all.
I have gotten passed the dexer issue by deleting duplicate Google Play Services Lib files. When I go to run the app I get an error saying getFields() method is undefined. I am using 5.2.0 GA and ti.googleanalytics.
I'm using analytics.google and ti.cloudpush (3.4.1). I solved this issue deleting "google-play-services-base.jar" in cloudpush's lib folder. I'm not sure but doing that it seems that Titanium recognizes the JAR file from analytics as the only source for Google Play Services.