2010-12-01 111 views
2

這是什麼文件?我不刪除它! java.io.FileNotFoundException:RES /繪製-MDPI/scrollbar_handle_vertical.9.png我運行android應用程序(java.io.FileNotFoundException)時出現異常?

12-06 14:26:33.606: ERROR/AndroidRuntime(276): FATAL EXCEPTION: main 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276): android.view.InflateException: Binary XML file line #101: Error inflating class <unknown> 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.createView(LayoutInflater.java:513) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:621) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at ayanoo.forms.UserView.<init>(UserView.java:50) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at ayanoo.forms.SearchResultForm.addUser(SearchResultForm.java:124) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at ayanoo.forms.SearchResultForm.doSearch(SearchResultForm.java:105) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at ayanoo.forms.SearchResultForm$1.onClick(SearchResultForm.java:55) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.View.performClick(View.java:2408) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.View$PerformClick.run(View.java:8816) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.os.Handler.handleCallback(Handler.java:587) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.os.Handler.dispatchMessage(Handler.java:92) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.os.Looper.loop(Looper.java:123) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.app.ActivityThread.main(ActivityThread.java:4627) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at java.lang.reflect.Method.invokeNative(Native Method) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at java.lang.reflect.Method.invoke(Method.java:521) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at dalvik.system.NativeStart.main(Native Method) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276): Caused by: java.lang.reflect.InvocationTargetException 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.widget.Button.<init>(Button.java:65) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at java.lang.reflect.Constructor.constructNative(Native Method) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at java.lang.reflect.Constructor.newInstance(Constructor.java:446) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.LayoutInflater.createView(LayoutInflater.java:500) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  ... 22 more 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276): Caused by: android.content.res.Resources$NotFoundException: File res/drawable-mdpi/scrollbar_handle_vertical.9.png from drawable resource ID #0x7f060057 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.content.res.Resources.loadDrawable(Resources.java:1714) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.content.res.TypedArray.getDrawable(TypedArray.java:601) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.view.View.<init>(View.java:1885) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.widget.TextView.<init>(TextView.java:327) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.widget.Button.<init>(Button.java:69) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  ... 26 more 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276): Caused by: java.io.FileNotFoundException: res/drawable-mdpi/scrollbar_handle_vertical.9.png 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.content.res.AssetManager.openNonAssetNative(Native Method) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.content.res.AssetManager.openNonAsset(AssetManager.java:405) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  at android.content.res.Resources.loadDrawable(Resources.java:1706) 
    12-06 14:26:33.606: ERROR/AndroidRuntime(276):  ... 30 more 
    12-06 14:26:56.035: ERROR/MetadataRetrieverClient(33): failed to extract an album art 
+0

我有同樣的問題,但關閉IDE和清理項目並沒有幫助我。它似乎與我的佈局文件中的ImageView有關。如果我刪除ImageView,異常消失。 – 2011-04-08 18:24:46

回答

1

有時日食與此stucks ..只是關閉IDE,並再次啓動它。 並嘗試重建項目。

+0

在哪裏雙擊??! – Adham 2010-12-01 14:44:35

0

清理並構建項目,然後仔細檢查資源的路徑。

相關問題