android 诡异异常

袁杭 发布于 2013/04/24 13:44
阅读 1K+
收藏 1
04-25 13:40:47.624: E/AndroidRuntime(8556): android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
04-25 13:40:47.624: E/AndroidRuntime(8556): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:702)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.rInflate(LayoutInflater.java:614)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
04-25 13:40:47.624: E/AndroidRuntime(8556): at com.m1905.pad.activity.MyInfoActTab.onCreateView(MyInfoActTab.java:193)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:870)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1080)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:622)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1416)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:420)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.os.Handler.handleCallback(Handler.java:587)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.os.Handler.dispatchMessage(Handler.java:92)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.os.Looper.loop(Looper.java:123)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.app.ActivityThread.main(ActivityThread.java:4632)
04-25 13:40:47.624: E/AndroidRuntime(8556): at java.lang.reflect.Method.invokeNative(Native Method)
04-25 13:40:47.624: E/AndroidRuntime(8556): at java.lang.reflect.Method.invoke(Method.java:521)
04-25 13:40:47.624: E/AndroidRuntime(8556): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
04-25 13:40:47.624: E/AndroidRuntime(8556): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
04-25 13:40:47.624: E/AndroidRuntime(8556): at dalvik.system.NativeStart.main(Native Method)
04-25 13:40:47.624: E/AndroidRuntime(8556): Caused by: java.lang.reflect.InvocationTargetException
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.widget.EditText.<init>(EditText.java:104)
04-25 13:40:47.624: E/AndroidRuntime(8556): at java.lang.reflect.Constructor.constructNative(Native Method)
04-25 13:40:47.624: E/AndroidRuntime(8556): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
04-25 13:40:47.624: E/AndroidRuntime(8556): ... 23 more
04-25 13:40:47.624: E/AndroidRuntime(8556): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020169 a=-1 r=0x7f020169}
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.content.res.Resources.loadDrawable(Resources.java:1681)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.view.View.<init>(View.java:1895)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.widget.TextView.<init>(TextView.java:393)
04-25 13:40:47.624: E/AndroidRuntime(8556): at android.widget.EditText.<init>(EditText.java:108)
04-25 13:40:47.624: E/AndroidRuntime(8556): ... 27 more



在android 3.0 以上的android设备没有问题,可是为什么在2.2的设备上就报错了?

求大牛帮忙解答一下




加载中
0
只求一醉

你得贴出你的xml文件及相关的文件啊?

看这里:android.content.res.Resources$NotFoundException: Resource is not a Drawable


0
Jerikc
Jerikc
你可以查看一下出错的地方,是不是引用了3.0才开始有的API或者一些特性!
0
o
oliver_
对应分辨率的图片没有
返回顶部
顶部