[英]Can't get the google_play_services_version value after setting the google services API
I've set the Google play services API on my android app project, I did as I saw in the documentation for google android developer. 我已经在我的android应用项目中设置了Google Play服务API,就像在google android开发者文档中所看到的那样。 I started by copying the google library services in the folder of my project, then I added the refernce in the build (like we see in the photo the gooogle play services lib is perfectly deployed) and then I tried to copy this piece of code in android but manifiest not recognize the second line.
首先,我将Google图书馆服务复制到我项目的文件夹中,然后在构建中添加了引用(就像我们在照片中看到的,oooogle play services lib已完美部署),然后我尝试将这段代码复制到android,但不能识别第二行。
android:value="@integer/google_play_services_version"
So any help for that please ! 因此,请为此提供任何帮助! Thanks
谢谢
Xavier is right, there are no resources in the GooglePlayServices JAR file you usually get your compiled classes. Xavier是正确的,您通常会获得已编译类的GooglePlayServices JAR文件中没有资源。 As you're in Android Studio you can just add to your gradle dependencies :
compile 'com.google.android.gms:play-services:5.2.08'
当您在Android Studio中时,可以仅添加到gradle依赖项中:
compile 'com.google.android.gms:play-services:5.2.08'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.