Tag: 谷歌播放服务

升级到Google Play服务:9.0.0错误无法解决:com.google.android.gms:play-services-measurement:9.0.0

我升级了我的build.gradle文件 compile 'com.google.android.gms:play-services:8.4.0' 至 compile 'com.google.android.gms:play-services:9.0.0' 现在我得到这个错误,我没有得到之前。 错误:无法parsing:com.google.android.gms:play-services-measurement:9.0.0

Google Play服务已过期。 需要3159100,但find3158130

在SDK工具中,Google Play服务已更新至版本9(版本3159100),但Google API(API 17)仍为版本3,因此仅包含Google Play服务版本3158130 如何解决这个问题? Google Play服务的LogCat消息已过期。 需要3159100,但find3158130 提前致谢

将Google Play服务版本添加到应用的清单中?

我正在关注本教程: https : //developers.google.com/maps/documentation/android/start#overview了解如何将Google地图添加到Android SDK中的应用程序。 我似乎在这一点(我做了一切都没有错误),唯一的问题是: Edit your application's AndroidManifest.xml file, and add the following declaration within the <application> element. This embeds the version of Google Play services that the app was compiled with. <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> The error is: No resources found that match the given name (at 'value' with value '@integer/ google_play_services_version'). […]

在Android Studio中导入Google Play服务库

我有一个完全在Android Studio中开发的Android项目(当前版本为4.2,gradle版本为1.9)。 我想添加Google Play服务的function。 该项目无法parsingGooglePlayServicesUtil ,当我手动input导入(如下所示)时,我Cannot resolve symbol 'common' 。 import com.google.android.gms.common.GooglePlayServicesUtil; 任何想法,我需要做的,让GooglePlayServicesUtil解决? 我所试过的 从Google Play服务安装程序看起来,我只需将com.google.android.gms:play-services:4.+依赖项添加到我的build.gradle文件(以及使用gradle重新同步项目文件)以使SDK可用到我的项目。 我在ProjectName/module/build/exploded-bundles得到了一个“爆炸包”,但是看起来好像不是这样。 我已经从SDK Manager安装了Google Play服务,Android支持信息库和Google Repository。 我也删除并重新安装了多次:) 编辑: 可能需要手动添加google_play_services作为项目/全局库吗? 我试图没有成功。 我试图validation我是否正在使用Google服务开发Platform API(如果甚至可能的话),但我不确定是这种情况。 没有什么我改变似乎做任何事情。 我的项目的外部图书馆显示: <Android API 19平台> <1.7> 乔达 – 时间 – 2.3 支持-v4-13.0.0 源代码 这是我的ProjectName /模块/ build.gradle文件: buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.7.+' } } […]

版本冲突更新为播放服务9.4.0 Android Studio 2.2

我得到一个错误说 Error:Execution failed for task ':app:processDebugGoogleServices'. > Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0. 我试着看看https://bintray.com/android/android-tools/com.google.gms.google-services/和com.google.gms:google-services:3.0.0似乎是最新的。 这是我的项目gradle dependencies { classpath 'com.android.tools.build:gradle:2.1.2' classpath 'com.google.gms:google-services:3.0.0' // NOTE: Do not place your application dependencies here; […]

如何显示启用位置对话框,如谷歌地图?

我使用最新版本的Google Play服务(7.0),并按照其指南中给出的步骤进行操作,我启用了如下的位置对话框,其中有一个“从不”button。 我的应用程序强制需要位置,所以我不想显示从不向用户,因为一旦用户点击“从不”,我无法再获取位置或请求位置。 哪里像Google Maps只有没有button,没有button,任何想法如何实现一样? 我的应用程序的图像 Google地图的图片

在Android中初始化游戏客户端

我正在尝试新的Google Play游戏服务。 起初,我遵循这个https://developers.google.com/games/services/android/quickstart ,然后完成https://developers.google.com/games/services/android/init 我最终是这样的: 05-16 20:01:39.034: E/AndroidRuntime(18257): FATAL EXCEPTION: main 05-16 20:01:39.034: E/AndroidRuntime(18257): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information. 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$fa(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$fa(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$bp(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at com.google.android.gms.internal.p$a.handleMessage(Unknown Source) 05-16 20:01:39.034: E/AndroidRuntime(18257): at […]

Google Play游戏服务 – 无法login

在昨天的Google I / O主题演讲之后,我更新了我的Android SDK,将游戏服务整合到我的一个应用程序中。 我迄今为止所做的事情: 添加和链接我的应用程序在开发控制台(游戏服务) 包括OAuth客户端ID到我的应用程序/清单 添加BaseGameActivity和GameHelper到我的项目( 从GitHub ) 添加谷歌播放服务库到我的项目 扩展了BaseGameActivity ,增加了一个com.google.android.gms.common.SignInButton 我也设置了游戏元数据,当然还有一些成就。 开发者控制台声明它准备发布。 为了testingloginstream量和成就,我添加了两个Google+帐号作为testing用户。 但是当我testingSignInButton时,popup一个警告: 未知的错误 。 这是logcat: ERROR/Volley: il.a: Unexpected response code 403 for https://www.googleapis.com/games/v1/players/me ERROR/SignInIntentService: Access Not Configured ERROR/LoadSelfFragment: Unable to sign in – application does not have a registered client ID 我在生产模式下构build了我的应用程序 – 使用ProGuard和正确的证书。 我错过了什么? 更新 – 更多的尝试 以下是我在此期间尝试过的一个简短的概述。 […]

google-services.json究竟做了什么?

我致力于将Google Analytics(分析)和GCM服务添加到当前的应用程序中。 在这两个服务实现的指南,谷歌要求开发人员生成一个JSON文件:google-services.json,并把它放在应用程序的根目录下。 我发现,即使我从我的应用程序删除这个json文件,服务仍然有效。 只是想知道,这个文件真的是为了什么? 它的用法和工作原理

LogCat消息:找不到Google Play服务资源。 检查您的项目configuration,以确保包含资源

我有一个使用Google Maps Android v2 API的应用程序。 我已经将google-play-services_lib库项目添加到了我的工作区,并从我的应用程序项目中添加了一个对它的引用,按照这些页面上的说明进行操作: http://developer.android.com/google/play-services/setup.html 。 https://developers.google.com/maps/documentation/android/start 一切似乎工作正常:应用程序显示地图和覆盖与默认标记。 所以我很确定我已经正确设置了Google Play服务和Google Maps API。 不过,每当地图视图初始化时(在第二代Nexus 7上),我都会在ADT LogCat窗口中看到此消息: The Google Play services resources were not found. Check your project configuration to ensure that the resources are included. 消息级别为“错误”,标记为GooglePlayServicesUtil 。 这似乎是良性的,因为我的应用程序工作正常。 但是,我可以做什么或检查以解决任何问题可能? 更多信息:每次在“LogCat”中都会显示“Google Play服务资源未find”消息时,会在这些消息前面添加警告并标记为ResourceType : getEntry failing because entryIndex 906 is beyond type entryCount 3 Failure getting […]