4
回答
为什么我的android程序有时候能运行正确而有时候却不行啊
华为云4核8G,高性能云服务器,免费试用   
02-28 11:26:35.505: W/ResourceType(1500): No package identifier when getting value for resource number 0x00000000
02-28 11:26:35.613: D/AndroidRuntime(1500): Shutting down VM
02-28 11:26:35.613: W/dalvikvm(1500): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
02-28 11:26:35.634: E/AndroidRuntime(1500): FATAL EXCEPTION: main
02-28 11:26:35.634: E/AndroidRuntime(1500): java.lang.NullPointerException
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.graphics.Canvas.throwIfRecycled(Canvas.java:954)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.graphics.Canvas.drawBitmap(Canvas.java:980)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at Grade.plusgame.myView.onDraw(myView.java:78)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.View.draw(View.java:6740)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.View.draw(View.java:6743)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.View.draw(View.java:6743)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.drawChild(ViewGroup.java:1640)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.drawChild(ViewGroup.java:1638)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.View.draw(View.java:6743)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.widget.FrameLayout.draw(FrameLayout.java:352)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1842)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewRoot.draw(ViewRoot.java:1407)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewRoot.performTraversals(ViewRoot.java:1163)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.os.Looper.loop(Looper.java:123)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at android.app.ActivityThread.main(ActivityThread.java:4627)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at java.lang.reflect.Method.invokeNative(Native Method)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at java.lang.reflect.Method.invoke(Method.java:521)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-28 11:26:35.634: E/AndroidRuntime(1500):     at dalvik.system.NativeStart.main(Native Method)
02-28 11:26:38.083: I/Process(1500): Sending signal. PID: 1500 SIG: 9

举报
chenjunmeng
发帖于5年前 4回/2K+阅
顶部