关于安卓虚拟机总是出现Unfortunately,xxxxxxxx has stopped -问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

关于安卓虚拟机总是出现Unfortunately,xxxxxxxx has stopped

爵霸 2016-03-10 11:18:52 4175

是按照《第一行代码》写的,改成跟书上一模一样还出现这个,求指导

 03-15 05:31:41.660: D/gralloc_goldfish(1692): Emulator without GPU emulation detected.
03-15 05:31:45.230: D/AndroidRuntime(1692): Shutting down VM
03-15 05:31:45.230: W/dalvikvm(1692): threadid=1: thread exiting with uncaught exception (group=0xb4abfba8)
03-15 05:31:45.280: E/AndroidRuntime(1692): FATAL EXCEPTION: main
03-15 05:31:45.280: E/AndroidRuntime(1692): Process: com.example.uiwidgettest, PID: 1692
03-15 05:31:45.280: E/AndroidRuntime(1692): java.lang.NullPointerException
03-15 05:31:45.280: E/AndroidRuntime(1692):     at com.example.uiwidgettest.MainActivity.onClick(MainActivity.java:48)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.view.View.performClick(View.java:4438)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.view.View$PerformClick.run(View.java:18422)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.os.Handler.handleCallback(Handler.java:733)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.os.Handler.dispatchMessage(Handler.java:95)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.os.Looper.loop(Looper.java:136)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at android.app.ActivityThread.main(ActivityThread.java:5001)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at java.lang.reflect.Method.invokeNative(Native Method)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at java.lang.reflect.Method.invoke(Method.java:515)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
03-15 05:31:45.280: E/AndroidRuntime(1692):     at dalvik.system.NativeStart.main(Native Method)
虚拟机安卓 安卓nat 虚拟机nat 安卓xxx 安卓for
分享到
取消 提交回答
全部回答(1)
  • 爵霸
    2019-07-17 18:57:15
    java.lang.NullPointerException
    at com.example.uiwidgettest.MainActivity.onClick(MainActivity.java:48)

    48行报空指针

    0 0
云计算
使用钉钉扫一扫加入圈子
+ 订阅

时时分享云计算技术内容,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。

相似问题
最新问题