为什么 logcat 显示 WARN/Resources(1865): Converting to string: TypedValue{t=0x12/d=0x0?

发布于 2024-11-16 13:07:05 字数 1423 浏览 3 评论 0原文

我的对话框中有微调器,当我从微调器日志猫中选择值时,显示以下消息。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

因为看清所以看轻 2024-11-23 13:07:05

警告消息显示 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.

故人如初 2024-11-23 13:07:05

转到开发者选项-> “启用视图属性检查”取消选中此选项可以解决问题。

Go to Developer Options-> "Enable view attribute inspection" Uncheck this option solve the problem.

触ぅ动初心 2024-11-23 13:07:05

通常,您会搜索 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.

王权女流氓 2024-11-23 13:07:05

问题是 android:text="@+id/fooText

尝试在 XML 中进行如下更改:

 <TextView 
android:id="@+id/foo" 
android:text="@+id/fooText"/>

对此:

    <TextView 
android:id="@+id/foo" 
android:text=""/>

Problem is android:text="@+id/fooText

Try change in your XML as following:

 <TextView 
android:id="@+id/foo" 
android:text="@+id/fooText"/>

To this:

    <TextView 
android:id="@+id/foo" 
android:text=""/>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文