android - LogCat 消息 : The Google Play services resources were not found. 检查您的项目配置以确保包含资源

标签 android google-maps google-play-services

我有一个使用 Google Maps Android v2 API 的应用程序。我已将 google-play-services_lib 库项目添加到我的工作区,并按照这些页面上的说明从我的应用程序项目中添加了对它的引用:

一切似乎都运行良好:该应用使用默认标记显示 map 和叠加层。所以我很确定我已经正确设置了 Google Play 服务和 Google Maps API。

但是,每当初始化 map View (在第 2 代 Nexus 7 上)时,我都会在 ADT LogCat 窗口中看到此消息:

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

消息级别为Error,标签为GooglePlayServicesUtil

这似乎是良性的,因为我的应用程序运行良好。但是我可以做什么或检查以尝试解决可能出现的任何问题?


更多信息:LogCat 中每次出现“Google Play 服务资源未找到”消息时,前面都会出现这些消息,即警告并标记为 ResourceType:

getEntry failing because entryIndex 906 is beyond type entryCount 3

Failure getting entry for 0x7f0b038a (t=10 e=906) in package 0 (error -2147483647)

FWIW,当我搜索项目(包括 gen/R.java 文件)时,我在任何地方都找不到常量 0x7f0b038a。

我检查了生成的 .apk 的内容,它包含 google-play-services_lib/res 目录中的所有资源。


另一个更新:添加 ActionBarSherlock 并将 list 中的 targetSdkVersion 从 8 更新到 17 后,我现在在 LogCat 输出中看到另一个错误:

Could not find class 'maps.af.k', referenced from method 'maps.ag.an.a'

可以在此处找到有关该问题的更多详细信息:Google Maps works fine on Android but I still get an error "Could not find class 'maps.i.k', referenced from method maps.z.ag.a"

再一次,该应用程序似乎运行良好。也许忽略这些“错误”是安全的?

最佳答案

Google Mobile Ads SDK FAQ声明:

I keep getting the error 'The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.'

You can safely ignore this message. Your app will still fetch and serve banner ads.

因此,如果您正确地包含了 google-play-services_lib,并且您收到了广告,那么您无需担心(我猜...)

关于android - LogCat 消息 : The Google Play services resources were not found. 检查您的项目配置以确保包含资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18068627/

相关文章:

android - 谷歌地图警告

android - facebook.authorize 不能在手机上工作

android - 在android中查找当前位置

android - 使用 Glide 将图像加载到 Google map 标记

api - 为什么我的 Google Maps API key 失效了?

php - mysql查询获取内部数据,特别是纬度和经度

android - Google Play 游戏服务 + BaseGameUtils : Automated sign-in in second Activity?

Android:我可以在 Android Market 上发布使用 AmazonSDK 应用内支付的应用吗?还是必须使用 Amazon 的 App Store?

android - Activity.isFinishing() 的 fragment 等价物是什么?

android - 如何使自定义对话框看起来像警报对话框?