为什么 logcat 显示 WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0?
我的对话框中有微调器,当我从微调器日志猫中选择值时,显示以下消息。
06-22 12:42:48.941: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:48.991: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.471: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.520: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.540: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.550: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.561: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.571: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.580: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.590: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:52.221: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:52.301: WARN/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44ed5cc0
该消息显示什么?
i have spinner in dialog box , when i select value from spinner log cat show the below message..
06-22 12:42:48.941: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:48.991: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.471: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.520: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.540: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.550: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.561: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.571: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.580: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:50.590: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:52.221: WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0 a=2 r=0x7f090290}
06-22 12:42:52.301: WARN/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44ed5cc0
what is this messages show?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
警告消息显示 r=0x7f090290 因此在生成的 R.java 中,
你应该找到 0x7f090290 并且问题应该与变量有关
附近的数字。我想你需要改变字符串<->资源 xml 中的整数。
The WARN message shows r=0x7f090290 therefore in your generated R.java,
you should find 0x7f090290 and the issue should be related to the variables
near the number. I guess you need to change string <-> integer in resource xml.
转到开发者选项-> “启用视图属性检查”取消选中此选项可以解决问题。
Go to Developer Options-> "Enable view attribute inspection" Uncheck this option solve the problem.
通常,您会搜索 R.java 文件,并找到导致问题的项目(在您的情况下为 0x7f090290)...并找到匹配的变量名称。但是没有快速的方法可以使用 Eclipse 来查找该项目的使用位置。它可能存在于某个地方的无数文件中。而且(就我而言)它根本不存在。
Often you'll search your R.java file, and find the item that is causing the problem (0x7f090290, in your case)... and find the matching variable name. But there's no quick way to use Eclipse to find where that item is be used. It could be in countless files somewhere. And (in my case) it doesn't really exist at all.
问题是
android:text="@+id/fooText
尝试在 XML 中进行如下更改:
对此:
Problem is
android:text="@+id/fooText
Try change in your XML as following:
To this: