Tag: 谷歌播放服务

版本冲突更新到8.4.0

错误 : 任务“:app:processDebugGoogleServices”的执行失败。 请通过更新google-services插件的版本(有关最新版本的信息可在此获得 )或将com.google.android.gms的版本更新为8.3.0来修复版本冲突。 我已经完成了我发现的所有事情。 dependencies { // This does not break the build when Android Studio is missing the JRebel for Android plugin. classpath 'com.zeroturnaround.jrebel.android:jr-android-gradle:1.0.+' classpath 'com.android.tools.build:gradle:2.0.0-alpha3' classpath 'com.google.gms:google-services:2.0.0-alpha3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } 而在应用程序中 compile 'com.google.android.gms:play-services:8.4.0'

错误:窗口上的文件path太长,低于240个字符

所以,我对build.gradle(app)文件进行了一些更改,android studio给了我这个错误(在新标签中打开图像以便更好地查看): 我的build.gradle(应用程序)文件(这不是编辑的文件,我删除了新的代码行,仍然没有运气/解决scheme。): 一切都很好,直到我在build.gradle(应用程序)文件中做了一些更改,但后来我删除了这些新的代码行,android studio仍然不断给我的错误。 该错误与编译“com.google.android.gms:play-services:8.3.0”有关 。 我已经尝试删除/重命名所述文件夹中的那些PNG图像,但是当我重build项目时,PNG图像自动下载。 我的build.gradle(项目)文件包含类path“com.android.tools.build:gradle:1.5.0” 。 我想知道是什么原因导致这个错误,以及如何解决它? 非常感谢。

将Google Play服务添加到Eclipse项目

我已经红了一些post和文章,但它不适合我。 我无法在我的项目中添加/使用Google Play服务。 我的步骤: 我开始使用Google Api 2.2的项目 我已经使用SDK下载了Google Play服务 我将Google Play服务导入Eclipse工作区 在我的项目中添加Google Play服务作为依赖:Project – > Properties – > Android – > Library,Add – > google-play-services_lib 步骤1至3是好的,但我认为问题是在第4步。没有发生后,我做了第4步,我没有看到我的项目结构有任何改变:没有库被添加。 这些步骤也在这里描述。 我知道这是行不通的原因是因为任何来自Google Play服务的导入都会导致无法parsing的错误。

Google Play Services V2库中的NoClassDefFoundError

遵循官方教程后,尝试使用Google Play服务V2库时,出现以下exception。 java.lang.NoClassDefFoundError: com.google.android.gms.R$string at com.google.android.gms.common.GooglePlayServicesUtil.b(Unknown Source) at com.google.android.gms.common.GooglePlayServicesUtil.a(Unknown Source) at com.google.android.gms.common.GooglePlayServicesUtil.getErrorDialog(Unknown Source) 我哪里做错了?

AndroidManifest中的Google Play Services v13错误元数据

我的应用正在使用Google Play服务进行定位。 它也使用Google地图。 直到今天,它运行良好,但在Eclipse更新和谷歌播放服务v13安装后,它不再工作。 今天我已经执行了几个更新。 – Android SDK工具更新至22.3 – Android SDK平台工具更新至19 – Android SDK构build工具更新至19 – Google Play服务更新至13我还更新了ADT 当我启动应用程序时,我得到这个错误消息: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within the <application> element: <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> 我已经多次使用Google Play服务,而且这个应用程序一直运行良好,直到现在。 我没有在清单中包含任何元数据。 我试图解决这个问题,包括在我的应用程序清单中的元数据标签,但它不工作。 […]

Google Play服务更新

昨天API 19出来了,所以我升级了SDK和其他(包括Google Play服务)现在这个方法: private boolean isGooglePlayInstalled(){ int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); if(status == ConnectionResult.SUCCESS){ return true; }else{ ((Dialog)GooglePlayServicesUtil.getErrorDialog(status, this,10)).show(); } return false; } 在线投掷 int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this); Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value. Expected 4030500 but found 0. You must have the following declaration within […]

更新模拟器中的Google Play服务

我在Google Play上经历了很多这样的问题,我正在使用Android 4.2.2 API 17 。 我的应用程序需要Google Play服务8.1,编译良好,当它在模拟器上运行时,会显示“您需要更新您的Google Play服务”的消息 , 当我点击更新没有任何反应, 如何在不下载最新的API版本的情况下更新Google Play服务?

如何在Android Studio中使用Google Maps Api v2创buildAndroid应用程序?

在Android Studio中尝试使用GoogleMap创build应用程序时遇到了很多麻烦。 在使用Eclipse作为我的IDE之前(几乎)没有任何问题,我遵循以下指南: https://developers.google.com/maps/documentation/android/start 我之前从来没有使用过Android Studio,并且在整个项目/模块范例中遇到困难。 我无法成功configurationGoogle Play服务SDK http://developer.android.com/google/play-services/setup.html 这是我得到的奇怪的错误之一: 摇篮: 失败:生成失败,出现exception。 * 什么地方出了错: 执行失败的任务':MyMapApp:compileDebug'。 >编译失败; 详细信息请参阅编译器错误输出。 *尝试: 运行–stacktrace选项来获取堆栈跟踪。 运行–info或–debug选项来获得更多的日志输出。

找不到com.google.android.gms:play-services:3.1.59 3.2.25 4.0.30 4.1.32 4.2.40 4.2.42 4.3.23 4.4.52 5.0.77 5.0.89 5.2.08 6.1。 11 6.1.71 6.5.87

通过gradle引用play-services停止为我工作 – 煮沸了它 – 甚至我作为参考的示例停止工作: 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 […]

ClassNotFoundException:未find类“com.google.android.gms.ads.AdView”

我做了大量的研究,这对于许多用户来说似乎是一个常见的错误,但是原因却非常不同。 没有发现我为我工作。 我越来越 java.lang.RuntimeException: Unable to start activity ComponentInfo{ […]/[…].activities.StartActivity}: android.view.InflateException: Binary XML file line #173: Error inflating class […].BannerAd […] Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.android.gms.ads.AdView […] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.AdView" on path: DexPathList[[zip file "/data/app/[…]-1.apk"],nativeLibraryDirectories=[/data/app-lib/[…]-1, /vendor/lib, /system/lib]] 我正在安装最新版本的ADT和SDK软件包。 我将google-play-services_lib复制到我的工作区,并将其作为Android项目导入。 我把它作为一个库添加到我的应用程序项目。 我检查了“订单和出口”下的所有内容。 我有一个banner_ad.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" […]