Titanium JIRA Archive
Appcelerator Community (AC)

[AC-692] Google play service jar new system

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDuplicate
Resolution Date2016-02-29T15:47:32.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterBaharroth
AssigneeShak Hossain
Created2016-02-29T15:04:06.000+0000
Updated2016-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

FileDateSize
.log2016-02-29T15:04:53.000+00003627447
diagnostic7066364367187692694.log2016-02-29T15:05:30.000+0000850498

Comments

  1. Fokke Zandbergen 2016-02-29

    This requires MOD-1985
  2. Ganna Kozynenko 2016-04-06

    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

JSON Source