android学习之android.content.res.Resources$NotFoundException: File res/drawable/

今天编写程序,然后运行,结果在运行的时候一直提示资源找不到,但是这个文件在我的eclipse中是可以看到的,而且吧apk文件修改成zip文件,里面也是包含这个文件的,具体错误如下
10-24 06:02:29.090: D/AndroidRuntime(404): Shutting down VM
10-24 06:02:29.090: W/dalvikvm(404): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
10-24 06:02:29.120: E/AndroidRuntime(404): FATAL EXCEPTION: main
10-24 06:02:29.120: E/AndroidRuntime(404): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.netliving.foursquared/org.netliving.foursquared.MainActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.os.Handler.dispatchMessage(Handler.java:99)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.os.Looper.loop(Looper.java:123)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread.main(ActivityThread.java:4627)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at java.lang.reflect.Method.invokeNative(Native Method)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at java.lang.reflect.Method.invoke(Method.java:521)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at dalvik.system.NativeStart.main(Native Method)
10-24 06:02:29.120: E/AndroidRuntime(404): Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.createView(LayoutInflater.java:513)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at org.netliving.foursquared.util.TabsUtil.prepareTabView(TabsUtil.java:43)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at org.netliving.foursquared.util.TabsUtil.addTab(TabsUtil.java:37)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at org.netliving.foursquared.MainActivity.initTabHost(MainActivity.java:47)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at org.netliving.foursquared.MainActivity.onCreate(MainActivity.java:32)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
10-24 06:02:29.120: E/AndroidRuntime(404): 	... 11 more
10-24 06:02:29.120: E/AndroidRuntime(404): Caused by: java.lang.reflect.InvocationTargetException
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.widget.TextView.<init>(TextView.java:321)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at java.lang.reflect.Constructor.constructNative(Native Method)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.LayoutInflater.createView(LayoutInflater.java:500)
10-24 06:02:29.120: E/AndroidRuntime(404): 	... 23 more
10-24 06:02:29.120: E/AndroidRuntime(404): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/tab_main_nav_selector.xml from drawable resource ID #0x7f08002c
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.Resources.loadDrawable(Resources.java:1697)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.view.View.<init>(View.java:1885)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.widget.TextView.<init>(TextView.java:327)
10-24 06:02:29.120: E/AndroidRuntime(404): 	... 27 more
10-24 06:02:29.120: E/AndroidRuntime(404): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/tab_main_nav_selector.xml from xml type drawable resource ID #0x7f08002c
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.Resources.loadXmlResourceParser(Resources.java:1916)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.Resources.loadDrawable(Resources.java:1692)
10-24 06:02:29.120: E/AndroidRuntime(404): 	... 30 more
10-24 06:02:29.120: E/AndroidRuntime(404): Caused by: java.io.FileNotFoundException: res/drawable/tab_main_nav_selector.xml
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.AssetManager.openXmlAssetNative(Native Method)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:485)
10-24 06:02:29.120: E/AndroidRuntime(404): 	at android.content.res.Resources.loadXmlResourceParser(Resources.java:1898)
10-24 06:02:29.120: E/AndroidRuntime(404): 	... 31 more

你可能感兴趣的:(exception)