我想在我的 Google 项目中包含不同版本的库。
例如,我正在使用
compile "com.google.android.gms:play-services-base:6.5.87"
compile "com.google.android.gms:play-services-location:6.5.87"
compile "com.google.android.gms:play-services-maps:6.5.87"
我想包括
compile 'com.google.android.gms:play-services-identity:7.5.0'
同样,但我得到编译器错误,无法找到 analytics
和 gcm
类。
是将所有库升级到 7.5.0
的唯一解决方案吗?是否可以使用不同版本的 Google Play 服务库?我想知道所有不同的解决方案是什么。
最佳答案
list of selective APIs包括所有可用的 API。对于 GCM,您需要包含 play-services-gcm
库。
但是,您包含的所有 API 必须来自同一版本的 Google Play 服务 - 所有都必须是 7.5.0
或所有 6.5.87
.
关于android - 使用不同版本的 Google Play 服务库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31999107/