07-16 14:32:17.052: E/Trace(1193): error opening trace file: No such file or directory (2)
07-16 14:32:17.562: I/Choreographer(1193): Skipped 48 frames! The application may be doing too much work on its main thread.
07-16 14:32:17.732: D/gralloc_goldfish(1193): Emulator without GPU emulation detected.
07-16 14:32:20.272: D/AndroidRuntime(1193): Shutting down VM
07-16 14:32:20.272: W/dalvikvm(1193): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
07-16 14:32:20.312: E/AndroidRuntime(1193): FATAL EXCEPTION: main
07-16 14:32:20.312: E/AndroidRuntime(1193): java.lang.IllegalStateException: Could not execute method of the activity
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.view.View$1.onClick(View.java:3591)
07-16 14:32:20.312: E/AndroidRuntime(1193): at
android.view.View.performClick(View.java:4084)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.view.View$PerformClick.run(View.java:16966)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.os.Handler.handleCallback(Handler.java:615)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.os.Handler.dispatchMessage(Handler.java:92)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.os.Looper.loop(Looper.java:137)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-16 14:32:20.312: E/AndroidRuntime(1193): at java.lang.reflect.Method.invokeNative(Native Method)
07-16 14:32:20.312: E/AndroidRuntime(1193): at java.lang.reflect.Method.invoke(Method.java:511)
07-16 14:32:20.312: E/AndroidRuntime(1193): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-16 14:32:20.312: E/AndroidRuntime(1193): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-16 14:32:20.312: E/AndroidRuntime(1193): at dalvik.system.NativeStart.main(Native Method)
07-16 14:32:20.312: E/AndroidRuntime(1193): Caused by: java.lang.reflect.InvocationTargetException
07-16 14:32:20.312: E/AndroidRuntime(1193): at java.lang.reflect.Method.invokeNative(Native Method)
07-16 14:32:20.312: E/AndroidRuntime(1193): at java.lang.reflect.Method.invoke(Method.java:511)
07-16 14:32:20.312: E/AndroidRuntime(1193): at android.view.View$1.onClick(View.java:3586)
07-16 14:32:20.312: E/AndroidRuntime(1193): ... 11 more
07-16 14:32:20.312: E/AndroidRuntime(1193): Caused by: java.lang.NullPointerException
07-16 14:32:20.312: E/AndroidRuntime(1193): at com.example.xmlparse.XML_parse.download(XML_parse.java:47)
07-16 14:32:20.312: E/AndroidRuntime(1193): ... 14 more
07-16 14:32:22.542: I/Process(1193): Sending signal. PID: 1193 SIG: 9
问问题
289 次
2 回答
0
1.我认为你正在你的 UI 线程上做工作,离开你的 UI 线程,并使用 Handler 或使用 AsyncTask 在非 UI 线程上执行此操作。
2.请确保您的目标 XML 是用无错字正确编写的,因为它无法到达目标,因此它是空的。
于 2012-07-16T09:22:03.533 回答
0
07-16 14:32:20.312: E/AndroidRuntime(1193): 引起: java.lang.NullPointerException 07-16 14:32:20.312: E/AndroidRuntime(1193): at com.example.xmlparse.XML_parse.download (XML_parse.java:47)
好像你的 XML 是空的
于 2012-07-16T09:12:22.797 回答