Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5228] Cannot build app for Android after update

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-10-14T20:49:56.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMarian Kucharcik
AssigneeShak Hossain
Created2017-09-22T21:25:43.000+0000
Updated2017-10-14T20:49:56.000+0000

Description

Hi guys, after update to 6.2.2GA and download Android SDK(API26) I cannot build app for Android(it worked before update). I tried to change SDK to older, but didn't help. It gives errors: ERROR] : Failed to run dexer: [ERROR] : [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ItemListIntents; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/NoteIntents; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ReserveIntents; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/SearchIntents; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/AccountPicker; [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/ConnectionResult; [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:615) [ERROR] : at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368) [ERROR] : at com.android.dx.command.dexer.Main.runDx(Main.java:289) [ERROR] : at com.android.dx.command.dexer.Main.main(Main.java:247) [ERROR] : at com.android.dx.command.Main.main(Main.java:94) [ERROR] : Caused by: java.lang.InterruptedException: Too many errors [ERROR] : at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607) [ERROR] : ... 4 more I had another issue with Google Play service version conflict with Ti.Map and Ti.CluodPush, I replaced GplaySevice-base from CloudPush to Map. error dissapeared, but new error(described upwards) came in. Can okease somebody help me? Thank you

Comments

  1. Mostafizur Rahman 2017-09-24

    Hello [~max87] , Thanks for sharing with us. Can you please attach your sample project here to reproduce this on our end?
  2. Marian Kucharcik 2017-09-25

    Hi Mostafizur, I have my project created completely, but with ypdate, it's unable to compile. Basically, try to create simple Android app with Ti.Map and Ti.CloudPush via SDK 6.2.2GA Sample code:
       // this sets the background color of the master UIView (when there are no windows/tab groups on it)
       var NappDrawerModule = require('dk.napp.drawer');
       var CloudPush = require('ti.cloudpush');
       var Cloud = require('ti.cloud');
       var map = require('ti.map');
       Titanium.UI.setBackgroundColor('#000');
       
       // create tab group
       var tabGroup = Titanium.UI.createTabGroup();
       
       
       //
       // create base UI tab and root window
       //
       var win1 = Titanium.UI.createWindow({  
           title:'Tab 1',
           backgroundColor:'#fff'
       });
       var tab1 = Titanium.UI.createTab({  
           icon:'KS_nav_views.png',
           title:'Tab 1',
           window:win1
       });
       
       var label1 = Titanium.UI.createLabel({
       	color:'#999',
       	text:'I am Window 1',
       	font:{fontSize:20,fontFamily:'Helvetica Neue'},
       	textAlign:'center',
       	width:'auto'
       });
       
       win1.add(label1);
       
       //
       // create controls tab and root window
       //
       var win2 = Titanium.UI.createWindow({  
           title:'Tab 2',
           backgroundColor:'#fff'
       });
       var tab2 = Titanium.UI.createTab({  
           icon:'KS_nav_ui.png',
           title:'Tab 2',
           window:win2
       });
       
       var label2 = Titanium.UI.createLabel({
       	color:'#999',
       	text:'I am Window 2',
       	font:{fontSize:20,fontFamily:'Helvetica Neue'},
       	textAlign:'center',
       	width:'auto'
       });
       
       win2.add(label2);
       
       
       
       //
       //  add tabs
       //
       tabGroup.addTab(tab1);  
       tabGroup.addTab(tab2);  
       
       
       // open tab group
       tabGroup.open();
       
       
    Errors:
       [INFO] :   Running AAPT: /Users/mariankucharcik/Library/android-sdk-macosx/build-tools/26.0.1/aapt "package" "-f" "-m" "-J" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/gen" "-M" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/AndroidManifest.xml" "-A" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/bin/assets" "-S" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/res" "-I" "/Users/mariankucharcik/Library/android-sdk-macosx/platforms/android-26/android.jar" "-F" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/bin/app.ap_" "--output-text-symbols" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview:android.support.design:android.support.compat:com.google.android.gms"
       [INFO] :   Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Users/mariankucharcik/Library/android-sdk-macosx/platforms/android-26/android.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/kroll-v8.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-analytics.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/aps-analytics.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-android.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/jaxen-1.1.1.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/ti-commons-codec-1.3.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/kroll-common.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/titanium.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-multidex.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-filesystem.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-app.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-ui.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-media.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-appcompat.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v4.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-appcompat.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-animated-vector-drawable.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-annotations.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-core-ui.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-core-utils.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-fragment.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-media-compat.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-vector-drawable.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-transition.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-recyclerview.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-cardview.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-cardview.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-design.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-design.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-compat.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-compat.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-locale.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-network.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-xml.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-platform.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/map.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/lib/google-play-services-basement.jar:/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/lib/google-play-services-map.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/kroll-apt.jar:/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/lib/titanium-verify.jar:Manifest.class:R.class:AssetCryptImpl.class:SkuskabuilduActivity.class:SkuskabuilduAppInfo.class:SkuskabuilduApplication.class" "-d" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/java-sources.txt"
       [INFO] :   Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Users/mariankucharcik/Library/android-sdk-macosx/platform-tools" "-jar" "/Users/mariankucharcik/Library/android-sdk-macosx/build-tools/26.0.1/lib/dx.jar" "--dex" "--multi-dex" "--set-max-idx-number=65536" "--output=/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/bin/dexfiles" "/Users/mariankucharcik/Developer/AppceleratorStudio/SkuskaBuildu/build/android/bin/classes" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/lib/titanium-verify.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/map.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/lib/google-play-services-basement.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/modules/android/ti.map/3.3.1/lib/google-play-services-map.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/kroll-v8.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-analytics.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/aps-analytics.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-android.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/jaxen-1.1.1.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/ti-commons-codec-1.3.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/kroll-common.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/titanium.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-multidex.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-filesystem.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-app.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-ui.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-media.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-appcompat.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v4.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-appcompat.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-animated-vector-drawable.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-annotations.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-core-ui.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-core-utils.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-fragment.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-media-compat.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-vector-drawable.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-transition.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-recyclerview.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-cardview.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-v7-cardview.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-design.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-design.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-compat.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/android-support-compat.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-locale.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-network.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-xml.jar" "/Users/mariankucharcik/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA/android/modules/titanium-platform.jar"
       [ERROR] :  Failed to run dexer:
       [ERROR] :  
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ItemListIntents;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/NoteIntents;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/ReserveIntents;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/actions/SearchIntents;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$Info;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient$zza;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/AccountPicker;
       [ERROR] :  Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/common/ConnectionResult;
       [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:615)
       [ERROR] :  	at com.android.dx.command.dexer.Main.runMultiDex(Main.java:368)
       [ERROR] :  	at com.android.dx.command.dexer.Main.runDx(Main.java:289)
       [ERROR] :  	at com.android.dx.command.dexer.Main.main(Main.java:247)
       [ERROR] :  	at com.android.dx.command.Main.main(Main.java:94)
       [ERROR] :  Caused by: java.lang.InterruptedException: Too many errors
       [ERROR] :  	at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
       [ERROR] :  	... 4 more
       
       
    I hope this helps you to track and fix the bug... If there is anything else you need, please just ask, I'm happy to help... Thank you
  3. Marian Kucharcik 2017-09-25

    I just discovered, that when I remove Ti.Map module, sample app compiles fine(map module is core funcionality for my app). That corresponds with previous problem - there was version conflict of Ti.Map's Google play services and CloudPush's Gplay services. Please check it out
  4. Marian Kucharcik 2017-09-27

    Guys any news on this? Is there any possibility to update Ti.Map module and build app? I need to release new android update because iOS version of app is getting public and it's required to update android version too. Thank you
  5. Aminul Islam 2017-09-28

  6. Sharif AbuDarda 2017-10-12

    Hello [~bgarcia], did you follow [~aislam]'s guide. Let me know the update of your issue.

JSON Source