使用不同版本的Google Play服务库

3
我可以帮助您翻译以下内容:

我想在我的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'

我也尝试了,但是编译器报错,找不到 analyticsgcm 类。

升级所有库到 7.5.0 是唯一的解决方案吗?是否可以使用不同版本的 Google Play Services 库?我想知道所有不同的解决方案。

1个回答

1
可选择的API列表包括所有可用的API。对于GCM,您需要包含play-services-gcm库。
但是,您包含的所有API必须来自同一版本的Google Play服务 - 所有API都必须是7.5.06.5.87

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接