简体   繁体   中英

How to resolve conflicting Google play services versions

I am using some native android modules in my Titanium application. Some modules have their own google-play-services.jar included which conflicts with others. Specifically the app is crashed if I include ti.cloudpush module for android push notifications.

Is there any way available to solve this problem? I think this is now quite old and common issue. Following is details of my enviornment:

Titanium SDK 5.2.0.GA
Titanium CLI 5.0.6
Target android 6.0
ti.cloudpush 3.4.1
analytics.google 3.1.0
com.sitata.googleplus 1.5.0

I have been able to solve this problem in the past by selecting one version of google-play-services.jar and forcibly replacing the other versions of the jar file with this one version.

I actually copied the ti.cloudpush module into my project directory so that I can maintain it directly (and keep the proper version of google-play-services.jar checked into my source code repository).

I have not had any problem if I replace the jar file with a newer version. You can cross-reference your jar file versions against this document: http://www.smorgasbork.com/2015/01/05/google-play-services-sdk-version-history/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM