Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android-使用旧的play服务版本_Android_Version_Google Play Services - Fatal编程技术网

Android-使用旧的play服务版本

Android-使用旧的play服务版本,android,version,google-play-services,Android,Version,Google Play Services,我试图在Android Studio上使用Google play services5.0.89,但它一直说他找不到这样的版本。 我正在使用此配置: compile 'com.google.android.gms:play-services-maps:5.0.89' compile 'com.google.android.gms:play-services-gcm:5.0.89' compile 'com.google.android.gms:play-services-analytics:5.0

我试图在Android Studio上使用Google play services
5.0.89
,但它一直说他找不到这样的版本。 我正在使用此配置:

compile 'com.google.android.gms:play-services-maps:5.0.89'
compile 'com.google.android.gms:play-services-gcm:5.0.89'
compile 'com.google.android.gms:play-services-analytics:5.0.89'
compile 'com.google.android.gms:play-services-drive:5.0.89'
compile 'com.google.android.gms:play-services-location:5.0.89'
但安卓工作室一直在说:

Failed to resolve: com.google.android.gms:play-services-drive:5.0.89
它对上面列出的每个包都有相同的作用。 我查看了
Android/sdk/extras/google/m2repository/com/google/Android/gms/play services/5.0.89/
,其中包含以下文件:

play-services-5.0.89.aar
play-services-5.0.89.aar.md5
play-services-5.0.89.aar.sha1
play-services-5.0.89.pom
play-services-5.0.89.pom.md5
play-services-5.0.89.pom.sha1

如何解决这个问题?

我相信Google Play服务当时没有拆分(你可以在
Android/sdk/extras/Google/m2repository/com/Google/Android/gms/Play Services/5.0.89/
中看到一个AAR)

应该起作用,但不是它的设计,比如:

compile 'com.google.android.gms:play-services-maps:5.0.89'
因此,使用这样的旧版本会迫使您使用完整的Google Play服务

从6.5版开始,您可以有选择地将Google Play服务API编译到您的应用程序中


Google play服务直到6.5版才被拆分,因此您必须将通用依赖项用于everything@tyczj的确添加了文档链接。
compile 'com.google.android.gms:play-services-maps:5.0.89'