我正在尝试运行谷歌Play服务的BasicSamples中的一个模块。我已经在开发人员控制台的游戏服务中配置了应用程序,包括OAuth2,包名称,成就,排行榜等。我还更新了Intellij SDK管理器,以安装谷歌Play服务和谷歌存储库。我还更新了Take A Number应用程序,以包含应用程序id和所有其他id。
然而,当我尝试运行Take A Number时,我得到了这个对话框:
"Install Google Play Games
This app requires the latest version of the Google Play Games app."
设
最近,我将我的android项目更新为gradle 2.8。从那时起,我在构建日志中得到了以下消息:
$ ./gradlew clean
No resolved dependencies found when searching for the jacoco version.
No resolved dependencies found when searching for the jacoco version.
[ant:exec] Result: 1
[...]
BUILD SUCCESSFUL
Total time: 8.922 secs
构建似乎完成了正确的,但这条消息变得相当恼人。
我正在尝试在我正在开发的电子游戏中添加谷歌游戏功能。我正在使用LibGDX on IntelliJ Idea。我使用的LibGDX版本(1.2.0)使用基于gradle的项目。
我将其添加到主build.gradle文件的项目依赖项(“:android”)块中:
compile 'com.google.android.gms:play-services:5.2.8'
但是,IntelliJ的想法在构建时给了我这个错误:
Error:Gradle: A problem occurred configuring project ':android'.
> Co
我有点不知道如何在应用程序中管理Google Play Services。
指定下载播放服务的最新版本,并在gradle.build中设置版本号。
dependencies {
//...
compile 'com.google.android.gms:play-services:6.1.+'
}
然后解释说:
Be sure you update this version number each time Google Play services is updated.
什么意思?这是否意味着每次发布新版本时,都应该在应用程序中进行更新,并在build.gra
我说错了
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
我一直在我的应用程序上使用谷歌的融合定位服务来进行位置跟踪。我使用Android studio,它是gradle构建系统。最近,我发现了谷歌定位服务的一个大问题。
我的gradle build文件包含这个依赖项:compile 'com.google.android.gms:play-services:+。因此,当我重新构建我的项目时,Android studio下载了google play服务的最新版本,即5.2.08。然而,我的设备(三星Galaxy S4)只有5.0.89版本。显然这两个版本不兼容,我得到这个错误:Google Play services out of date.
这是我从这一行得到的错误消息:我的应用程序build.gradle中的依赖项中的compile 'com.google.android.gms:play-services-ads:15.0.0'
All com.google.android.gms libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 15.0.4, 15.0.1, 15.0.0. Examples include com.goog
我想通过Google Play服务使用位置API
这是顶级gradle文件:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build
我们的应用遇到了一个非常令人沮丧的问题。在尝试添加谷歌play定位服务时,我们得到了一个java.lang.NoClassDefFoundError: org.joda.time.chrono.ISOChronology。这只发生在我们的调试版本上。我们已经将其范围缩小到build.gradle中的compile "com.google.android.gms:play-services-location:9.8.0"行。无论是否使用位置服务,包含此行都将导致此错误。
我们的应用程序级项目中的依赖项是以下`依赖项{编译项目(‘:build.gradle:volley’)
com
目前,在我的生产应用程序中,我注意到了这个错误:
java.lang.RuntimeException:
at android.app.ActivityThread.handleReceiver (ActivityThread.java:2648)
at android.app.ActivityThread.access$1700 (ActivityThread.java:166)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1359)
at android.os.Handler.dis
Android studio 2.2.2
假设默认依赖= compile 'com.google.android.gms:play-services:9.8.0'
我在运行时面临这个错误:
Error:java.lang.RuntimeException: Error: more than one library with package name 'com.google.android.gms'。
当我试图将默认的play服务依赖项替换为我的项目中需要的特定依赖项以减少执行时间时。
下面是我的应用程序级gradle文件:
apply plugin: '