我的应用程序在Android 3+上工作正常但是当我在2.2模拟器上运行时,我得到以下FC:
03-08 18:15:47.952: E/AndroidRuntime(342): FATAL EXCEPTION: main
03-08 18:15:47.952: E/AndroidRuntime(342): android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
03-08 18:15:47.952: E/AndroidRuntime(342): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.LayoutInflater.inflate(LayoutInflater.java:385)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:332)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.AbsListView.obtainView(AbsListView.java:1315)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ListView.makeAndAddView(ListView.java:1727)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ListView.fillDown(ListView.java:652)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ListView.fillFromTop(ListView.java:709)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.ListView.layoutChildren(ListView.java:1580)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.AbsListView.onLayout(AbsListView.java:1147)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:714)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1249)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1125)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.LinearLayout.onLayout(LinearLayout.java:1042)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.layout(View.java:7035)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.os.Handler.dispatchMessage(Handler.java:99)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.os.Looper.loop(Looper.java:123)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-08 18:15:47.952: E/AndroidRuntime(342): at java.lang.reflect.Method.invokeNative(Native Method)
03-08 18:15:47.952: E/AndroidRuntime(342): at java.lang.reflect.Method.invoke(Method.java:521)
03-08 18:15:47.952: E/AndroidRuntime(342): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-08 18:15:47.952: E/AndroidRuntime(342): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-08 18:15:47.952: E/AndroidRuntime(342): at dalvik.system.NativeStart.main(Native Method)
03-08 18:15:47.952: E/AndroidRuntime(342): Caused by: java.lang.reflect.InvocationTargetException
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.TextView.<init>(TextView.java:321)
03-08 18:15:47.952: E/AndroidRuntime(342): at java.lang.reflect.Constructor.constructNative(Native Method)
03-08 18:15:47.952: E/AndroidRuntime(342): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
03-08 18:15:47.952: E/AndroidRuntime(342): ... 35 more
03-08 18:15:47.952: E/AndroidRuntime(342): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_medium_white.xml from drawable resource ID #0x0
03-08 18:15:47.952: E/AndroidRuntime(342): at android.content.res.Resources.loadDrawable(Resources.java:1697)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.view.View.<init>(View.java:1885)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.widget.TextView.<init>(TextView.java:327)
03-08 18:15:47.952: E/AndroidRuntime(342): ... 39 more
03-08 18:15:47.952: E/AndroidRuntime(342): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_medium_white.xml from xml type drawable resource ID #0x0
03-08 18:15:47.952: E/AndroidRuntime(342): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1924)
03-08 18:15:47.952: E/AndroidRuntime(342): at android.content.res.Resources.loadDrawable(Resources.java:1692)
03-08 18:15:47.952: E/AndroidRuntime(342): ... 42 more
这一行: android.content.res.Resources $ NotFoundException:文件res / drawable / progress_medium_white.xml
说这个资源没有找到......但是这个资源应该由android api提供吗?
知道如何解决这个问题吗?