[英]Why google-play-service is not found in my phonegap app as I already add the latest jar?
I am trying custom cordova plugin for GCM.我正在尝试 GCM 的自定义科尔多瓦插件。 I have included latest google-play-service.jar in project's libs folder and <meta-data android:name="com.google.android.gms.version" android:value="5089000" />
in AndroidMenifest.xml.我在项目的 libs 文件夹中包含了最新的google-play-service.jar,在 AndroidMenifest.xml 中包含了<meta-data android:name="com.google.android.gms.version" android:value="5089000" />
。 But still facing this problem...但是还是面临这个问题...
E/GooglePlayServicesUtil( 2808): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
W/GooglePlayServicesUtil( 2808): Google Play services out of date. Requires 5089000 but found 4452030
I am developing android app on phonegap.我正在 phonegap 上开发 android 应用程序。 I have found this error message in console window.我在控制台窗口中发现了此错误消息。 I supposed to follow this Install the Google Play services SDK , but did't found any build.gradle and proguard-rules.txt我应该按照这个Install the Google Play services SDK ,但没有找到任何build.gradle和proguard-rules.txt
Can any one tell the actual reason?谁能说出真正的原因? How can I include google-play-service in my phonegap project in an appropriate way?如何以适当的方式在我的 phonegap 项目中包含 google-play-service? Please help me.请帮我。 I am looking forward to hear from you soon.我期待着尽快收到您的来信。 Thank you.谢谢你。
E/GooglePlayServicesUtil( 2808): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
This problem has been solved.这个问题已经解决了。 The solution has beed found here Cordova build problems after import google play service Google play service resources were missing from my phonegap project even after adding the google-play-service.jar in libs folder. 在导入 google play 服务后,我的 phonegap 项目中缺少 Google Play 服务资源,即使在 libs 文件夹中添加了 google-play-service.jar 后,已在此处找到解决方案Cordova 构建问题。 So I had to configure the phonegap project.所以我不得不配置phonegap项目。 Steps are (copied from the link)...步骤是(从链接复制)...
Your logcat output says you have installed an outdated version.您的 logcat 输出表明您安装了过时的版本。 And you are following a blogpost from March 2014, perhaps you should try the official docs.您正在关注 2014 年 3 月的一篇博文,也许您应该尝试使用官方文档。
http://developer.android.com/google/play-services/setup.htmlhttp://developer.android.com/google/play-services/setup.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.