在本文中,我们将带你了解android–错误:软件包GooglePlayServicesClient不存在在这篇文章中,我们将为您详细介绍android–错误:软件包GooglePlayService
在本文中,我们将带你了解android – 错误:软件包GooglePlayServicesClient不存在在这篇文章中,我们将为您详细介绍android – 错误:软件包GooglePlayServicesClient不存在的方方面面,并解答googleplay安装显示应用未安装常见的疑惑,同时我们还将给您一些技巧,以帮助您实现更有效的android – Appinvite_styles.xml:5:错误包括Google Play Services库到eclipse时、android – Cordova FCM – 构建错误:无法应用插件[id’com.google.gms.google-services’]、android – eclipse导入google-play-services_lib显示值的错误、Android – Google Play Services 7.5.0 AnalyticsService NPE onStartCommand。
本文目录一览:- android – 错误:软件包GooglePlayServicesClient不存在(googleplay安装显示应用未安装)
- android – Appinvite_styles.xml:5:错误包括Google Play Services库到eclipse时
- android – Cordova FCM – 构建错误:无法应用插件[id’com.google.gms.google-services’]
- android – eclipse导入google-play-services_lib显示值的错误
- Android – Google Play Services 7.5.0 AnalyticsService NPE onStartCommand
android – 错误:软件包GooglePlayServicesClient不存在(googleplay安装显示应用未安装)
Error:(11,37) error: cannot find symbol class GooglePlayServicesClient Error:(13,35) error: cannot find symbol class PlusClient Error:(20,44) error: package GooglePlayServicesClient does not exist Error:(21,33) error: package GooglePlayServicesClient does not exist Error:(35,13) error: cannot find symbol class PlusClient Error:(279,12) error: cannot find symbol class PlusClient Error:(78,31) error: package PlusClient does not exist Error:(160,65) error: package PlusClient does not exist Error:(239,5) error: method does not override or implement a method from a supertype Error:(249,5) error: method does not override or implement a method from a supertype Error:(262,5) error: method does not override or implement a method from a supertype
我已经在我的SDK经理中安装了google play服务,所以我不知道为什么告诉我包不存在.
编辑:
毕业文件:
apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsversion "22.0.1" defaultConfig { applicationId "com.example.tyler.titanaid" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs',include: ['*.jar']) compile 'com.android.support:appcompat-v7:22.0.0' compile 'com.google.android.gms:play-services:7.0.0' }
解决方法
Note: If you have an existing app that connects to Google Play
services with a subclass of GooglePlayServicesClient,you should
migrate to Googleapiclient as soon as possible.
我猜Android Studio没有被更新,以便在开发中稍后添加一个登录活动时自动输入新的API而不是旧API.
所以依赖于GooglePlayServices的任何东西也必须更新,包括PlusClient和其他一些.
我已经看到在互联网上移植工具,但它可能只是使事情更容易自己做.希望这可以帮助.
android – Appinvite_styles.xml:5:错误包括Google Play Services库到eclipse时
我需要在我的应用中添加广告.所以我需要在我的项目中加入Google Play服务库.我已经安装了最新版本的Google Play服务(r29)并作为libProject添加到我的项目中.但是,当我添加此服务lib时,我收到以下错误:
workspace\Google_Play_Services_Lib\res\values-v21\appinvite_styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.Light.DialogWhenLarge.NoActionBar'.
我怎么解决这个问题 ?感谢帮助..
android – Cordova FCM – 构建错误:无法应用插件[id’com.google.gms.google-services’]
这是我运行Cordova构建时遇到的错误
@H_301_11@FAILURE: Build Failed with an exception. * Where: Build file ''C:\Users\Me\workspace\App\platforms\android\build.gradle'' line: 326 * What went wrong: A problem occurred evaluating root project ''android''. > Failed to apply plugin [id ''com.google.gms.google-services''] > For input string: "+"这是build.gradle文件应用插件的最后一行:’com.google.gms.google-services’,这是安装说明所要做的.
我创建了一个帐户,从AndroidManifest.xml获取了我的包名,然后将google-services.json添加到Android项目的main中,然后在build.gradle文件中添加了3行,但我继续得到这个错误.
我究竟做错了什么?谢谢您的帮助.
解决方法
我的修复是编辑./platforms/android/project.properties
我在所有Google服务上将其更改为10.0.1. (确保SDK是最新的)
即:
@H_301_11@cordova.system.library.1=com.google.android.gms:play-services-analytics:+至
@H_301_11@cordova.system.library.1=com.google.android.gms:play-services-analytics:10.0.1做一个构建,所有工作.
android – eclipse导入google-play-services_lib显示值的错误
我有干净的项目更改Google Api,添加google-play-services.jar文件,重启 eclipse但是错误
在控制台显示错误如下
[2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:10: error: Attribute "adSize" has already been defined [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:17: error: Attribute "adSizes" has already been defined [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\ads_attrs.xml:20: error: Attribute "adUnitId" has already been defined [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:4: error: Resource entry common_signin_btn_dark_text_default is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:4: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:5: error: Resource entry common_signin_btn_dark_text_pressed is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:5: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:6: error: Resource entry common_signin_btn_dark_text_disabled is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:6: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:7: error: Resource entry common_signin_btn_dark_text_focused is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:7: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:8: error: Resource entry common_signin_btn_light_text_default is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:8: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:9: error: Resource entry common_signin_btn_light_text_pressed is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:9: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:10: error: Resource entry common_signin_btn_light_text_disabled is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:10: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:11: error: Resource entry common_signin_btn_light_text_focused is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:11: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:12: error: Resource entry common_signin_btn_default_background is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:12: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_colors.xml:13: error: Resource entry common_action_bar_splitter is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\colors.xml:13: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\strings.xml:6: error: Resource entry common_google_play_services_install_title is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_strings.xml:21: Originally defined here. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\strings.xml:10: error: Resource entry common_google_play_services_install_text_phone is already defined. [2014-05-23 11:54:22 - GPSService] D:\AndroidTool\workspace\google-play-services_lib\res\values\common_strings.xml:25: Originally defined here.
解决方法
Android – Google Play Services 7.5.0 AnalyticsService NPE onStartCommand
java.lang.RuntimeException: Unable to start service com.google.android.gms.analytics.AnalyticsService@1153b3b0 with null: java.lang.NullPointerException at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2721) at android.app.ActivityThread.access$1900(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5116) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(NativeStart.java) Caused by: java.lang.NullPointerException at com.google.android.gms.analytics.AnalyticsService.onStartCommand() at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2704) at android.app.ActivityThread.access$1900(ActivityThread.java:141) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1353) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5116) at java.lang.reflect.Method.invokeNative(Method.java) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at dalvik.system.NativeStart.main(NativeStart.java)
这个问题也已经发布在Google Analytics(分析)bug跟踪器上,但是我并不期望看到有一段时间的移动:https://code.google.com/p/analytics-issues/issues/detail?id=667
这是我的Gradle文件中的内容:
compile 'com.google.android.gms:play-services:7.5.0'
在我的AndroidManifest(我认为是从Google文档逐字删除)中:
<receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver" android:enabled="true" > <intent-filter> <action android:name="com.google.android.gms.analytics.ANALYTICS_disPATCH" /> </intent-filter> </receiver> <service android:name="com.google.android.gms.analytics.AnalyticsService" android:enabled="true" android:exported="false" />
解决方法
今天的关于android – 错误:软件包GooglePlayServicesClient不存在和googleplay安装显示应用未安装的分享已经结束,谢谢您的关注,如果想了解更多关于android – Appinvite_styles.xml:5:错误包括Google Play Services库到eclipse时、android – Cordova FCM – 构建错误:无法应用插件[id’com.google.gms.google-services’]、android – eclipse导入google-play-services_lib显示值的错误、Android – Google Play Services 7.5.0 AnalyticsService NPE onStartCommand的相关知识,请在本站进行查询。
本文标签: