简体   繁体   English

设置Google Services API后无法获取google_play_services_version值

[英]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.

相关问题 找不到google_play_services_version - google_play_services_version not found 来自aar库的google_play_services_version值出错 - Error with google_play_services_version value from aar library 错误:找不到资源整数/ google_play_services_version(又名app:integer / google_play_services_version) - error: resource integer/google_play_services_version (aka app:integer/google_play_services_version) not found 对于intellij,无法解析符号@ integer / google_play_services_version - Cannot resolve symbol @integer/google_play_services_version for intellij google_play_services_version)。 错误:处理失败 - google_play_services_version) not found. error: failed process 找不到Android清单@ integer / google_play_services_version - Android manifest @integer/google_play_services_version not found Android:找不到Admob资源@ integer / google_play_services_version - Android: Admob resource not found @integer/google_play_services_version 如何修复“找不到与给定名称匹配的资源('value'与值'@ integer / google_play_services_version')” - How to fix “No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version')” No Gradle - 找不到与给定名称匹配的资源('value'的值为'@ integer / google_play_services_version') - No Gradle - No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version') 构建系统如何从.aar获取google_play_services_version? - How does the build system get google_play_services_version from the .aar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM