No package identifier when getting name for resource number 0x00000000
2013-08-16 19:26
169 查看
貌似在新版本的SDK下有时会出现标题的这个warning~ 如下:
思前想后也不知道这个到底是说的哪里的问题,在逛谷歌的时候无意中发现有人说是因为xml中color的参数直接写成:
android:textColor
=
"#ffffff"
这样的话就会出现上面的warning了~~
解决方法就是:
1 用系统默认的颜色 比如
android:textColor
=
"@android:color/black"
2 或者自己把颜色写到color.xml的文件夹里边,自定义颜色,推荐使用这个,因为系统颜色太少了~
好了,搞定!
思前想后也不知道这个到底是说的哪里的问题,在逛谷歌的时候无意中发现有人说是因为xml中color的参数直接写成:
android:textColor
=
"#ffffff"
这样的话就会出现上面的warning了~~
解决方法就是:
1 用系统默认的颜色 比如
android:textColor
=
"@android:color/black"
2 或者自己把颜色写到color.xml的文件夹里边,自定义颜色,推荐使用这个,因为系统颜色太少了~
好了,搞定!
相关文章推荐
- Android异常01----No package identifier when getting name for resource number 0x00000000 警告提示
- W/ResourceType: No package identifier when getting value for resource number 0x00000000
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- no package identifier when getting value for resource number 0x00000005
- No known package when getting name for resource number 0x0be977f2
- W/ResourceType: No package identifier when getting value for resource number 0x00000034
- No package identifier when getting value for resource number 0x0000001c
- No package identifier when getting value for resource num 0x00000000 【安卓资源找不到】
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- No package identifier when getting value for resource num 0x00000000 【安卓资源找不到】
- No package identifier when getting value for resource number
- No package identifier when getting value for resource
- No package identifier when getting value for resource
- 更新SDK后错误处理:W/ResourceType(18775): No known package when getting value for resource number 0x7f050000
- No known package when getting value for resource number 0xfe080009
- No resource identifier found for attribute 'parentActivityName' in package 'android'
- No resource identifier found for attribute 'pstsIndicatorColor' in package
- Android出现Error:No resource identifier found for attribute XXX in package
- No resource identifier found for attribute 'showAsAction' in package
- 关于android自定义View时报error: No resource identifier found for attribute ‘XXX’ in package ‘(