stackoverflow上如何简洁细致地描述问题范例
来源:互联网 发布:淘宝秒杀优惠券技巧 编辑:程序博客网 时间:2024/06/01 19:35
范例摘自:http://stackoverflow.com/questions/18068627/logcat-message-the-google-play-services-resources-were-not-found-check-your-pr
问题描述:
I have an application that uses the Google Maps Android v2 API. I’ve added the google-play-services_lib library project to my workspace and added a reference to it from my application project, following the instructions on these pages:
http://developer.android.com/google/play-services/setup.html.https://developers.google.com/maps/documentation/android/start
Everything seems to work fine: The app displays maps and overlays with the default markers. So I’m pretty sure I’ve got the Google Play services and Google Maps API stuff set up correctly.
However, I see this message in the ADT LogCat window whenever the map view is initialized (on a 2nd-gen Nexus 7):
The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.
The message level is Error, and the tag is GooglePlayServicesUtil.
This seems benign, as my app does work fine. But what can I do or check to try to address whatever the problem might be?
Further info: Each time the “Google Play services resources were not found” message appears in LogCat, it is preceded by these messages, which are Warnings and tagged 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, I can’t find the constant 0x7f0b038a anywhere when I search the projects, including the gen/R.java files.
I’ve checked the contents of the generated .apk, and it includes all of the resources that are in the google-play-services_lib/res directory.
Another update: After adding ActionBarSherlock and updating the targetSdkVersion in my manifest from 8 to 17, I now see another error in the LogCat output:
Could not find class ‘maps.af.k’, referenced from method ‘maps.ag.an.a’
More details about that problem can be found here: 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”
And once again, the app seems to work just fine. Maybe it’s safe to ignore these “errors”?
- stackoverflow上如何简洁细致地描述问题范例
- StackOverflow上七个有趣的Java问题
- Stackoverflow上的Python问题精选
- Stackoverflow上的Python问题精选
- MakeFile 经典简洁范例
- FIND_IN_SET() vs IN(), StackOverFlow上的一个问题
- Stackoverflow上关于if-else语句的有趣问题
- StackOverflow上看到的关于返回值一个问题
- 如何使用 Eclipse 插件和简洁的 Groovy 语言在 EC2 上快速地建立和运行简单的 Web 应用程序
- 【Stackoverflow好问题】如何遍历map对象(如HashMap)
- 如何解决stackoverflow访问速度慢的问题
- 上不了stackoverflow
- 国内上stackoverflow慢
- Web Service开发实例(转的)——这编描述了如何建立一个webService的实例,写得非常简洁清晰,所以情不自禁地就原文照转了
- Java如何像Python一样简洁地构造和解析Json 数据
- 在stackoverflow上使用markdown
- VOIP通信原理简洁描述
- 在StackOverflow网站上获赞同最多的Java问题(前十名)
- java设计模式之策略模式
- 使用.net nhibernate连接mysql数据库
- Fragment的用法
- C语言(函数指针)
- VS2013 解决方案文件结构分析
- stackoverflow上如何简洁细致地描述问题范例
- 免费的论文查重网站
- PHP如何将字符首字母大小写转换
- 深入分析JavaWeb 39 -- 监听器(Listener)学习进阶
- 微信研究 如何把微信中的文章转发到微信企业号应用中?(图文)
- 如何利用开发开具调试程序-VC++6.0篇
- 待机、休眠、睡眠的区别(整理)
- 程序员的故事 005 软件就业方向1
- Linux 网卡驱动学习(一)(分析一个虚拟硬件的网络驱动例子)