我一生都无法弄清楚为什么我在我的 logcat 中得到了这个:
11-16 09:08:04.287:W/ResourceType(348):获取资源编号 0x00000004 的值时没有包标识符 11-16 09:08:04.295:W/ImageView(348):无法找到资源:4 11- 16 09:08:04.295: W/ImageView(348): android.content.res.Resources$NotFoundException: 资源 ID #0x4 11-16 09:08:04.295: W/ImageView(348): 在 android.content.res .Resources.getValue(Resources.java:907) 11-16 09:08:04.295: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11-16 09:08 :04.295: W/ImageView(348): 在 android.widget.ImageView.resolveUri(ImageView.java:693) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.ImageView.onMeasure( ImageView.java:796) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView( 348):在 android.widget.RelativeLayout。measureChildHorizontal(RelativeLayout.java:581) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.RelativeLayout.onMeasure(RelativeLayout.java:365) 11-16 09:08:04.295: W/ ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138 ) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.295: W/ImageView(348): 在 android .view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08 :04.295: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout。measureVertical(LinearLayout.java:386) 11-16 09:08:04.295: W/ImageView(348): at android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.295: W/ ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138 ) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.295: W/ImageView(348): 在 android .widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08 :04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup。measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.295: W/ ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309 ) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android .widget.ScrollView.measureChildWithMargins(ScrollView.java:1074) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08 :04.295: W/ImageView(348): 在 android.widget.ScrollView.onMeasure(ScrollView.java:296) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View。测量(View.java:8322)11-16 09:08:04.295:W/ImageView(348):在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138)11-16 09:08:04.295:W/ ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322 ) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.295: W/ImageView(348): 在 android .widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08 :04.295: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(看法。java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.295: W/ImageView(348) : 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.295: W/ImageView(348): 在 android.widget.FrameLayout .onMeasure(FrameLayout.java:250) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.295: W /ImageView(348): 在 android.view.ViewRoot.performTraversals(ViewRoot.java:876) 11-16 09:08:04.295: W/ImageView(348): 在 android.view.ViewRoot.handleMessage(ViewRoot.java: 1911) 11-16 09:08:04.295:W/ImageView(348): 在 android.os.Handler.dispatchMessage(Handler.java:99) 11-16 09:08:04.295: W/ImageView(348): 在 android.os.Looper.loop(Looper.java :130) 11-16 09:08:04.295: W/ImageView(348): 在 android.app.ActivityThread.main(ActivityThread.java:3821) 11-16 09:08:04.295: W/ImageView(348):在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:08:04.295: W/ImageView(348): 在 java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:08:04.295: W/ImageView(348): 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11-16 09:08:04.295: W/ImageView(348):在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-16 09:08:04.295: W/ImageView(348): 在 dalvik.system.NativeStart.main(Native Method) 11-16 09:08:04.295:W/ResourceType(348):获取资源号 0x00000004 11-16 09:08:04.310 的值时没有包标识符:W/ImageView(348):无法找到资源:4 11-16 09:08:04.310:W/ImageView(348):android。 content.res.Resources$NotFoundException: 资源 ID #0x4 11-16 09:08:04.310: W/ImageView(348): at android.content.res.Resources.getValue(Resources.java:907) 11-16 09: 08:04.310: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.ImageView .resolveUri(ImageView.java:693) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.ImageView.onMeasure(ImageView.java:796) 11-16 09:08:04.310: W /ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.RelativeLayout.measureChild(RelativeLayout.java:566) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.RelativeLayout.onMeasure(RelativeLayout.java:381) 11-16 09:08:04.310: W/ImageView(348): 在android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09: 08:04.310: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.View.measure (View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView (348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.310: W/ImageView(348): 在android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09: 08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical (LinearLayout.java:386) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.310: W/ImageView (348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.310: W/ImageView(348): 在android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09: 08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.ScrollView.measureChildWithMargins (ScrollView.java:1074) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.310: W/ImageView (348): 在 android.widget.ScrollView.onMeasure(ScrollView.java:296) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04。310: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout .java:250) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348) ): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11- 16 09:08:04.310: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget。 LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310:W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java :250) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348):在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.310: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09 :08:04.310: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.310: W/ImageView(348): 在 android.view.ViewRoot。 performTraversals(ViewRoot.java:876) 11-16 09:08:04.310: W/ImageView(348): at android.view.ViewRoot.handleMessage(ViewRoot.java:1911) 11-16 09:08:04.310: W/ ImageView(348):在 android.os.Handler。dispatchMessage(Handler.java:99) 11-16 09:08:04.310: W/ImageView(348): 在 android.os.Looper.loop(Looper.java:130) 11-16 09:08:04.310: W/ ImageView(348): 在 android.app.ActivityThread.main(ActivityThread.java:3821) 11-16 09:08:04.310: W/ImageView(348): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:08:04.310: W/ImageView(348): 在 java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:08:04.310: W/ImageView(348): 在com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11-16 09:08:04.310: W/ImageView(348): at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:597) 11-16 09:08:04.310: W/ImageView(348): at dalvik.system.NativeStart.main(Native Method) 11-16 09:08:04.318: W/ResourceType(348):获取资源号 0x00000004 的值时没有包标识符 11-16 09:08:04.326:W/ImageView(348):无法找到资源:4 11-16 09:08:04.326:W/ImageView(348):android。 content.res.Resources$NotFoundException: 资源 ID #0x4 11-16 09:08:04.326: W/ImageView(348): at android.content.res.Resources.getValue(Resources.java:907) 11-16 09: 08:04.326: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.ImageView .resolveUri(ImageView.java:693) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.ImageView.onMeasure(ImageView.java:796) 11-16 09:08:04.326: W /ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:581) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.RelativeLayout.onMeasure(RelativeLayout.java:365) 11-16 09:08:04.326: W/ImageView(348) : 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View .measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W /ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.326: W/ImageView(348): 在android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09: 08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical (LinearLayout.java:386) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.326: W/ImageView (348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09: 08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.ScrollView.measureChildWithMargins (ScrollView.java:1074) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView (348): 在 android.widget.ScrollView.onMeasure(ScrollView.java:296) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04。326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout .java:250) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348) ): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:526) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11- 16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view。 ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326:带图像视图(348):在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09 :08:04.326:W / ImageView(348):在android.widget.FrameLayout.onMeasure(FrameLayout.java:250)11-16 09:08:04.326:W / ImageView(348):在android.view.View。测量(View.java:8322)11-16 09:08:04.326:W/ImageView(348):在 android.view.ViewRoot.performTraversals(ViewRoot.java:876)11-16 09:08:04.326:W/ ImageView(348): 在 android.view.ViewRoot.handleMessage(ViewRoot.java:1911) 11-16 09:08:04.326: W/ImageView(348): 在 android.os.Handler.dispatchMessage(Handler.java:99 ) 11-16 09:08:04.326: W/ImageView(348): 在 android.os.Looper.loop(Looper.java:130) 11-16 09:08:04.326: W/ImageView(348): 在 android .app.ActivityThread.main(ActivityThread.java:3821) 11-16 09:08:04。326:W/ImageView(348):在 java.lang.reflect.Method.invokeNative(本机方法)11-16 09:08:04.326:W/ImageView(348):在 java.lang.reflect.Method.invoke( Method.java:507) 11-16 09:08:04.326: W/ImageView(348): 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11-16 09:08: 04.326: W/ImageView(348): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-16 09:08:04.326: W/ImageView(348): 在 dalvik.system.NativeStart .main(本机方法)11-16 09:08:04.326:W / ResourceType(348):获取资源编号0x00000004 11-16 09:08:04.326的值时没有包标识符:W / ImageView(348):无法查找资源:4 11-16 09:08:04.326: W/ImageView(348): android.content.res.Resources$NotFoundException: 资源 ID #0x4 11-16 09:08:04.326: W/ImageView(348):在 android.content.res.Resources。getValue(Resources.java:907) 11-16 09:08:04.326: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.ImageView.resolveUri(ImageView.java:693) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.ImageView.onMeasure(ImageView.java :796) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348):在 android.widget.RelativeLayout.measureChild(RelativeLayout.java:566) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.RelativeLayout.onMeasure(RelativeLayout.java:381) 11-16 09 :08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup。 measureChildWithMargins(ViewGroup.java:3138)11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure (View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView (348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java:386) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.326: W/ImageView(348): 在 android. view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08: 04.326:W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureVertical(LinearLayout.java :386) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.326: W/ImageView(348):在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09 :08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1017) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout。 measureVertical(LinearLayout.java:386) 11-16 09:08:04.326: W/ImageView(348): at android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1074) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09: 08:04.326: W/ImageView(348): 在 android.widget.ScrollView.onMeasure(ScrollView.java:296) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure (View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11-16 09:08:04.326: W/ImageView (348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在安卓。widget.LinearLayout.measureVertical(LinearLayout.java:526) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.LinearLayout.onMeasure(LinearLayout.java:309) 11-16 09:08: 04.326: W/ImageView(348): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup .java:3138) 11-16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView(348) ): 在 android.view.View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3138) 11- 16 09:08:04.326: W/ImageView(348): 在 android.widget.FrameLayout.onMeasure(FrameLayout.java:250) 11-16 09:08:04.326: W/ImageView(348): 在 android.view。 View.measure(View.java:8322) 11-16 09:08:04.326: W/ImageView(348): 在 android.view.ViewRoot.performTraversals(ViewRoot.java:876) 11-16 09:08:04.326: W/ImageView(348): 在android.view.ViewRoot.handleMessage(ViewRoot.java:1911) 11-16 09:08:04.326: W/ImageView(348): 在 android.os.Handler.dispatchMessage(Handler.java:99) 11-16 09: 08:04.326: W/ImageView(348): 在 android.os.Looper.loop(Looper.java:130) 11-16 09:08:04.326: W/ImageView(348): 在 android.app.ActivityThread.main (ActivityThread.java:3821) 11-16 09:08:04.326: W/ImageView(348): at java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:08:04.326: W/ImageView( 348): 在 java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:08:04.326: W/ImageView(348): 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:839) 11-16 09:08:04.326: W/ImageView(348):在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-16 09:08:04.326: W/ImageView(348): 在 dalvik.system.NativeStart.main(Native Method)
我想知道这是否会导致 ANR?我知道它正在寻找不存在的资源......它也发生在似乎是通知的地方:
11-16 09:07:02.271:W/ResourceType(348):获取资源编号 0x00000004 的值时没有包标识符 11-16 09:07:02.271:W/ImageView(348):无法找到资源:4 11- 16 09:07:02.271: W/ImageView(348): android.content.res.Resources$NotFoundException: 资源 ID #0x4 11-16 09:07:02.271: W/ImageView(348): 在 android.content.res .Resources.getValue(Resources.java:907) 11-16 09:07:02.271: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11-16 09:07 :02.271: W/ImageView(348): 在 android.widget.ImageView.resolveUri(ImageView.java:693) 11-16 09:07:02.271: W/ImageView(348): 在 android.widget.ImageView.setImageResource( ImageView.java:383) 11-16 09:07:02.271: W/ImageView(348): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:07:02.271: W/ImageView(348) ):在java.lang。reflect.Method.invoke(Method.java:507) 11-16 09:07:02.271: W/ImageView(348): 在 android.widget.RemoteViews$ReflectionAction.apply(RemoteViews.java:570) 11-16 09: 07:02.271: W/ImageView(348): 在 android.widget.RemoteViews.performApply(RemoteViews.java:1082) 11-16 09:07:02.271: W/ImageView(348): 在 android.widget.RemoteViews.apply (RemoteViews.java:1057) 11-16 09:07:02.271: W/ImageView(348): at com.android.systemui.statusbar.StatusBarService.makeNotificationView(StatusBarService.java:765) 11-16 09:07:02.271 : W/ImageView(348): 在 com.android.systemui.statusbar.StatusBarService.addNotificationViews(StatusBarService.java:831) 11-16 09:07:02.271: W/ImageView(348): 在 com.android.systemui。 statusbar.StatusBarService.addNotification(StatusBarService.java:555) 11-16 09:07:02.271: W/ImageView(348): at com.android.systemui.statusbar。CommandQueue$H.handleMessage(CommandQueue.java:178) 11-16 09:07:02.271: W/ImageView(348): 在 android.os.Handler.dispatchMessage(Handler.java:99) 11-16 09:07: 02.271: W/ImageView(348): 在 android.os.Looper.loop(Looper.java:130) 11-16 09:07:02.271: W/ImageView(348): 在 android.app.ActivityThread.main(ActivityThread .java:3821) 11-16 09:07:02.271: W/ImageView(348): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:07:02.271: W/ImageView(348) : 在 java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:07:02.271: W/ImageView(348): 在 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit .java:839) 11-16 09:07:02.271: W/ImageView(348): 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11-16 09:07:02.271: W /ImageView(348):在 dalvik.system.NativeStart。main(本机方法)11-16 09:07:02.521:W/ResourceType(348):获取资源编号 0x00000004 11-16 09:07:02.521 的值时没有包标识符:W/ImageView(348):无法找到资源:4 11-16 09:07:02.521:W/ImageView(348):android.content.res.Resources$NotFoundException:资源 ID #0x4 11-16 09:07:02.521:W/ImageView(348):在android.content.res.Resources.getValue(Resources.java:907) 11-16 09:07:02.521: W/ImageView(348): 在 android.content.res.Resources.getDrawable(Resources.java:595) 11 -16 09:07:02.521: W/ImageView(348): 在 android.widget.ImageView.resolveUri(ImageView.java:693) 11-16 09:07:02.521: W/ImageView(348): 在 android.widget .ImageView.setImageResource(ImageView.java:383) 11-16 09:07:02.521: W/ImageView(348): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:07:02.521:W/ImageView(348): 在 java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:07:02.521: W/ImageView(348): 在 android.widget.RemoteViews$ReflectionAction.apply (RemoteViews.java:570) 11-16 09:07:02.521: W/ImageView(348): 在 android.widget.RemoteViews.performApply(RemoteViews.java:1082) 11-16 09:07:02.521: W/ImageView (348): 在 android.widget.RemoteViews.apply(RemoteViews.java:1057) 11-16 09:07:02.521: W/ImageView(348): 在 com.android.systemui.statusbar.StatusBarService.makeNotificationView(StatusBarService. java:765) 11-16 09:07:02.521: W/ImageView(348): 在 com.android.systemui.statusbar.StatusBarService.addNotificationViews(StatusBarService.java:831) 11-16 09:07:02.521: W/ ImageView(348): 在 com.android.systemui.statusbar.StatusBarService.updateNotification(StatusBarService.java:658) 11-16 09:07:02.521: W/ImageView(348):在 com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:183) 11-16 09:07:02.521: W/ImageView(348): 在 android.os.Handler.dispatchMessage(Handler.java: 99) 11-16 09:07:02.521: W/ImageView(348): 在 android.os.Looper.loop(Looper.java:130) 11-16 09:07:02.521: W/ImageView(348): 在android.app.ActivityThread.main(ActivityThread.java:3821) 11-16 09:07:02.521: W/ImageView(348): 在 java.lang.reflect.Method.invokeNative(Native Method) 11-16 09:07 :02.521: W/ImageView(348): at java.lang.reflect.Method.invoke(Method.java:507) 11-16 09:07:02.521: W/ImageView(348): at com.android.internal。 os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 11-16 09:07:02.521: W/ImageView(348): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 11 -16 09:07:02.521:W/ImageView(348):在 dalvik.system。NativeStart.main(本机方法)
两者都适用于资源 ID #0x4 ....想法?