问题描述
引用的播放服务,通过摇篮停止工作对我来说 - 水煮下来 - 即使我作为摆在首位的参考样本停止工作:https://plus.google.com/+AndroidDevelopers/posts/4Yhpn6p9icf
referencing the play-services via gradle stopped working for me - boiled it down - even the sample I used as a reference in the first place stopped working:https://plus.google.com/+AndroidDevelopers/posts/4Yhpn6p9icf
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':auth'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':auth:compile'.
> Could not find com.google.android.gms:play-services:3.1.36.
Required by:
gpsdemos:auth:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 3.577 secs
我担心,只是版本增加,但引发两个问题: #1)什么是新的? #2)为什么老版去了?
I fear that just the version increased but that raises 2 questions: #1) what is the new one? #2) why is the old version gone?
推荐答案
检查你是否也安装了谷歌库。如果没有,你还必须在你的SDK管理器安装谷歌库。
Check if you also installed the "Google Repository". If not, you also have to install the "Google Repository" in your SDK Manager.
另外要注意,有可能是2 SDK安装 - 一个来自AndroidStudio到来,一个你可能已经安装了。更好地巩固这一次安装 - 这是一个常见的问题 - 你有它安装在一个安装,但是当你建立与其他安装失败
Also be aware that there might be 2 SDK installations - one coming from AndroidStudio and one you might have installed. Better consolidate this to one installation - this is a common pitfall - that you have it installed in one installation but it fails when you build with the other installation.
这篇关于找不到com.google.android.gms:播放服务:3.1.59 3.2.25 4.0.30 4.1.32 4.2.40 4.2.42 4.3.23 52年4月4日5.0.77 5.0.89 08年2月5日6.1。 11 71年6月1日87年6月5日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!