[AC-692] Google play service jar new system
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Duplicate |
Resolution Date | 2016-02-29T15:47:32.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Baharroth |
Assignee | Shak Hossain |
Created | 2016-02-29T15:04:06.000+0000 |
Updated | 2016-04-06T12:24:18.000+0000 |
Description
Steps to Reproduce
Now modules with google play service jar are installed with
1) the google-play-service-base.jar
2) the specific jar for the module exemple : google-play-service-map.jar
As your Ti.MAP
The issue is : when you use a module who use the global google-play-service.jar
Ti try to inject method contain in google-play-service-base.jar and google-play-service-map.jar in the project but those methods are already in the google-play-service.jar
And you have this error (for my sample)
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/auth/AccountChangeEvent;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/AccountChangeEventsRequest;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/AccountChangeEventsResponse;
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/auth/GoogleAuthException;
So how can manage multiple google-service-base.jar with global google-service-base.jar?
Actual Result
Methods in google-service-base.jar are added even if contain in google-play-service.jar
Expected Result
Don't added methods if there are already in the global jar google-play-service.jar
Attachments
This requires MOD-1985
I just ran into this bug with this module: https://github.com/SeanChristopherConway/titanium-google-geofence/issues/1 I am compiling in Titanium 5.2.0 This module adds google-play-services-custom.jar I also use CloudPush and it adds these google-play-services-base.jar google-play-services-gcm.jar