[AC-5228] Cannot build app for Android after update
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-10-14T20:49:56.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Marian Kucharcik |
Assignee | Shak Hossain |
Created | 2017-09-22T21:25:43.000+0000 |
Updated | 2017-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
Hello [~max87] , Thanks for sharing with us. Can you please attach your sample project here to reproduce this on our end?
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:
Errors:
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
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
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
Hello [~bgarcia], did you follow [~aislam]'s guide. Let me know the update of your issue.