Warum wird die App in der VM nicht gestartet?

1 Antwort

Welche Fehlermeldung wird dir zurückgeben?

Häng dich des Weiteren mal mit einen Debugger dran und prüfe, wo das Programm scheitert. Meistens erschließt sich dabei auch der Grund.

Meine Fehlermeldung:

01-17 05:57:27.998 2793-2793/? E/libprocessgroup: failed to make and chown /acct/uid_10059: Read-only file system
01-17 05:57:27.998 2793-2793/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
01-17 05:57:27.999 2793-2793/? I/art: Not late-enabling -Xcheck:jni (already on)
01-17 05:57:28.379 2793-2793/com.thomaskuenneth.halloandroid D/AndroidRuntime: Shutting down VM

--------- beginning of crash
01-17 05:57:28.380 2793-2793/com.thomaskuenneth.halloandroid E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.thomaskuenneth.halloandroid, PID: 2793
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.thomaskuenneth.halloandroid/com.thomaskuenneth.halloandroid.MainActivity}: java.lang.NullPointerException: Attempt to read from field 'long android.graphics.Paint.mNativePaint' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Caused by: java.lang.NullPointerException: Attempt to read from field 'long android.graphics.Paint.mNativePaint' on a null object reference
at android.graphics.Canvas.drawCircle(Canvas.java:1181)
at com.thomaskuenneth.halloandroid.MainActivity.onCreate(MainActivity.java:36)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698) 

0

Was möchtest Du wissen?