使用不同版本的 Google Play 服务库
Using different versions of Google Play Services libs
我想在我的 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
.
我想在我的 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
.