-1
    05-18 03:36:42.250: E/Trace(3525): error opening trace file: No such file or directory (2)
    05-18 03:36:42.640: D/AndroidRuntime(3525): Shutting down VM
    05-18 03:36:42.640: W/dalvikvm(3525): threadid=1: thread exiting with uncaught exception (group=0x40a71930)
    05-18 03:36:42.732: E/AndroidRuntime(3525): FATAL EXCEPTION: main
    05-18 03:36:42.732: E/AndroidRuntime(3525): java.lang.RuntimeException: Unable to instantiate application android.app.Application: java.lang.NullPointerException
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.LoadedApk.makeApplication(LoadedApk.java:504)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4364)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.ActivityThread.access$1300(ActivityThread.java:141)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.os.Handler.dispatchMessage(Handler.java:99)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.os.Looper.loop(Looper.java:137)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.ActivityThread.main(ActivityThread.java:5041)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at java.lang.reflect.Method.invokeNative(Native Method)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at java.lang.reflect.Method.invoke(Method.java:511)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at dalvik.system.NativeStart.main(Native Method)
    05-18 03:36:42.732: E/AndroidRuntime(3525): Caused by: java.lang.NullPointerException
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:379)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.LoadedApk.getClassLoader(LoadedApk.java:322)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     at android.app.LoadedApk.makeApplication(LoadedApk.java:496)
    05-18 03:36:42.732: E/AndroidRuntime(3525):     ... 11 more
    05-18 03:36:56.010: D/gralloc_goldfish(3558): Emulator without GPU emulation detected.
    05-18 03:47:25.183: I/Choreographer(3558): Skipped 45 frames!  The application may be doing too much work on its main thread.
    05-18 03:47:39.080: D/gralloc_goldfish(3613): Emulator without GPU emulation detected.
    05-18 03:47:41.770: D/dalvikvm(3613): GC_CONCURRENT freed 84K, 7% free 2781K/2988K, paused 72ms+10ms, total 196ms
    05-18 03:47:41.770: D/dalvikvm(3613): WAIT_FOR_CONCURRENT_GC blocked 55ms
    05-18 03:47:45.579: D/dalvikvm(3613): GC_CONCURRENT freed 100K, 7% free 3083K/3300K, paused 5ms+20ms, total 226ms
    05-18 03:47:53.329: I/Choreographer(3613): Skipped 111 frames!  The application may be doing too much work on its main thread.

我知道这是我第二次发布错误消息,但请耐心等待,因为我最终会完全理解如何破译这些日志。但是有人可以帮助我理解为什么我的日志以错误开头,然后开始说我的仿真开始工作了吗?

4

2 回答 2

5

您发布的是堆栈跟踪。这是对最近发生的事情的跟踪,并追溯到发生了什么让你到达那里。

您需要反向阅读此内容。顶部发生的事情(您发布的第一行)是最近发生的事情。

可以这样想:

I feel pain in my finger.
Just before that, my finger touched a hot burner.
Just before that, my hand stopped moving.
Just before that, my hand was moving down toward the burner.
Just before that, my hand was over the stove.
Just before that, my hand was just in front of the stove.
Just before that, my hand was near the stove.
Just before that, my hand was near my body.
Just before that, my hand was by my side.
于 2013-05-18T04:23:52.453 回答
1

您的问题与模拟器开始运行的事实无关,您的问题是这一行:

Caused by: java.lang.NullPointerException at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:379)

这意味着在您的代码中的某处(如错误所述:在第 379 行,如果LoadedApk您是班级)您正在尝试访问不是首先创建的东西,或者它的创建失败并且它持有的东西Null而不是实际的valueObject.

于 2013-05-18T04:19:29.937 回答