越来越袋无效时包标识符资源数量为0xffffffff [英] invalid package identifier when getting bag for resource number 0xffffffff
问题描述
我很新的android开发,并试图以熟悉弹出菜单。
于是我跟着这个教程:
I am quite new to android development and tried to get familiar with popup menus. So I followed this tutorial:
<一个href=\"http://android-er.blogspot.de/2012/03/example-of-using-popupmenu.html\">http://android-er.blogspot.de/2012/03/example-of-using-popupmenu.html
我的minSdkVersion是18,我的目标是SdkVersion 19,我调到了APK到我的三星Galaxy S4(Android 4.3的)。
如果我打的按钮,会出现弹出菜单 - 到目前为止,没有任何问题。
My minSdkVersion is 18, my target SdkVersion is 19, I transferred the apk to my Samsung Galaxy S4 (Android 4.3). If I hit the button, the popup menu appears - so far no problem.
但是,如果我看我的LogCat中内出现以下消息,如果我打开弹出菜单:
But if I look inside my LogCat the following message appears if I open the popup menu:
02-10 10:55:03.850: W/ResourceType(29714): Invalid package identifier when getting bag for resource number 0xffffffff
我试图清理我的项目,我试图删除根文件夹和重建项目,但没有运气。
我检查了 R.java
文件,但里面是id的资源 0xFFFFFFFF的
。
I tried to clean my project, I tried to delete the gen-folder and rebuilt the project but no luck.
I examined the R.java
file but inside there is no resource with id 0xFFFFFFFF
.
然后我试图与模拟器,但这一警告没有出现,如此看来它与三星Galaxy S4手机本身。
那么该怎么做呢?难道我做任何事情(特别是如果我要提供本人在谷歌的应用程序Play商店),或者我可以离开它,因为它是与此警告住?
Then I tried with the emulator, there this warning does not appear, so it seems it has to do with the Samsung Galaxy S4 phone itself. So what to do now? Do I have to do anything (especially if I want to provide my app on Google Play Store) or can I leave it as it is and live with this warning?
推荐答案
如果它不造成任何崩溃 - 它的确定。这可以作为导致使用Android的一些资源从 android.R的结果。 ...
或@android:......。因为它有自己的固件,而Android模拟器使用它们不提供SG S4干净的Android
If it's not causing any crashes - it's ok. This can be caused as a result of using some android resources from android.R. ...
or "@android: ..." which are not available on SG S4 as it has its own firmware while Android emulator uses "clean" Android.
这篇关于越来越袋无效时包标识符资源数量为0xffffffff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!