2010-10-28 105 views
0
10-28 11:24:10.579: ERROR/AndroidRuntime(748): Uncaught handler: thread main exiting due to uncaught exception 
10-28 11:24:10.610: ERROR/AndroidRuntime(748): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.build/com.example.build.ComBuild}: android.content.res.Resources$NotFoundException: File res/drawable/progress_large.xml from drawable resource ID #0x7f020003 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2268) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2284) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread.access$1800(ActivityThread.java:112) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1692) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.os.Handler.dispatchMessage(Handler.java:99) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.os.Looper.loop(Looper.java:123) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread.main(ActivityThread.java:3948) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at java.lang.reflect.Method.invokeNative(Native Method) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at java.lang.reflect.Method.invoke(Method.java:521) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at dalvik.system.NativeStart.main(Native Method) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748): Caused by: android.content.res.Resources$NotFoundException: File res/drawable/progress_large.xml from drawable resource ID #0x7f020003 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.content.res.Resources.loadDrawable(Resources.java:1625) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.content.res.Resources.getDrawable(Resources.java:535) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at com.example.build.ComBuild.onCreate(ComBuild.java:15) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2231) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  ... 11 more 
10-28 11:24:10.610: ERROR/AndroidRuntime(748): Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: invalid drawable tag animated-rotate 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:745) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.graphics.drawable.Drawable.createFromXml(Drawable.java:695) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  at android.content.res.Resources.loadDrawable(Resources.java:1622) 
10-28 11:24:10.610: ERROR/AndroidRuntime(748):  ... 15 more 

回答

1

看起來您的progress_large.xml文件中有錯誤。在日誌中的關鍵行是這一個:

Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #3: invalid drawable tag animated-rotate 

我的猜測是<animated-rotate>不可在1.5,如果您的應用程序正在更高版本。