AndroidRuntime: Shutting down VM

01-02 13:35:15.590   470   470 D StatusBar.NetworkController: mSimColor[ 0] = 0
01-02 13:35:15.620   103   103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.640   103   103 D dalvikvm: GC_EXPLICIT freed 38K, 4% free 9961K/10307K, paused 2ms+2ms, total 22ms
01-02 13:35:15.640   103   103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.670   103   103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+2ms, total 27ms
01-02 13:35:15.670   103   103 D dalvikvm: WAIT_FOR_CONCURRENT_GC blocked 0ms
01-02 13:35:15.680  1494  1494 D leichi1 : MrgService on create !
01-02 13:35:15.690   103   103 D dalvikvm: GC_EXPLICIT freed <1K, 4% free 9961K/10307K, paused 2ms+3ms, total 21ms
01-02 13:35:15.690  1494  1494 D leichi  : MgrService onCreate pid=1494
01-02 13:35:15.690  1494  1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700  1494  1494 D leichi  : MgrService registerBRC
01-02 13:35:15.700  1494  1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.700  1494  1494 D leichi  : MgrService onStart 1
01-02 13:35:15.710  1494  1494 W Environment: linkPath=/storage/sdcard0
01-02 13:35:15.710  1494  1494 D AndroidRuntime: Shutting down VM
01-02 13:35:15.710  1494  1494 W dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x40c2f378)

01-02 13:35:15.790   377   395 D dalvikvm: GC_FOR_ALLOC freed 2051K, 21% free 17495K/22087K, paused 56ms, total 57ms
01-02 13:35:15.850   105   350 W audio_hw_primary: VBC_CMD_HAL_RESTART release vbc_lock, pipe_name:/dev/spipe_w4.
01-02 13:35:15.870   377   395 D AbstractWindowedCursor: ====>onDeactivateOrClose is called...



问题背景:

测试系统稳定性,多次重启,每次重启手机后,拨打电话,然后调用接口重启手机,启动后接收开机广播,然后再打电话,重启手机.

之所以出现上面的问题是因为:

关机之前,没有正常关闭service。到service异常启动。

解决办法是,创建一个线程,在线程中sleep一会等关掉service之后再做重启操作。



发布了43 篇原创文章 · 获赞 4 · 访问量 6万+
展开阅读全文

安卓新手 在实验中遇到shutting down VM的错误不知道如何修改,求解答 THX!!

10-11

在logcat中现实的问题是这样的: 10-11 08:15:51.676 16168-16168/com.example.administrator.activitylifecycletest E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.administrator.activitylifecycletest, PID: 16168 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.administrator.activitylifecycletest/com.example.administrator.activitylifecycletest.DialogActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6077) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.support.v7.app.AppCompatDelegateImplV9.createSubDecor(AppCompatDelegateImplV9.java:356) at android.support.v7.app.AppCompatDelegateImplV9.ensureSubDecor(AppCompatDelegateImplV9.java:325) at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:286) at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139) at com.example.administrator.activitylifecycletest.DialogActivity.onCreate(DialogActivity.java:11) at android.app.Activity.performCreate(Activity.java:6662) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)  at android.app.ActivityThread.-wrap12(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6077)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756) 求大神指导要怎样修改 跪谢orz 问答

Android运行报错 求大神指导

12-02

12-01 20:49:04.872: D/AndroidRuntime(2097): Shutting down VM 12-01 20:49:04.872: W/dalvikvm(2097): threadid=1: thread exiting with uncaught exception (group=0xb4addb90) 12-01 20:49:04.922: E/AndroidRuntime(2097): FATAL EXCEPTION: main 12-01 20:49:04.922: E/AndroidRuntime(2097): Process: com.doudou, PID: 2097 12-01 20:49:04.922: E/AndroidRuntime(2097): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.doudou/com.doudou.DadoudouActivity}: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]] 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2102) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.access$700(ActivityThread.java:135) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Handler.dispatchMessage(Handler.java:102) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.os.Looper.loop(Looper.java:137) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.main(ActivityThread.java:4998) 12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invokeNative(Native Method) 12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.reflect.Method.invoke(Method.java:515) 12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777) 12-01 20:49:04.922: E/AndroidRuntime(2097): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593) 12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.NativeStart.main(Native Method) 12-01 20:49:04.922: E/AndroidRuntime(2097): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.doudou.DadoudouActivity" on path: DexPathList[[zip file "/data/app/com.doudou-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.doudou-1, /system/lib]] 12-01 20:49:04.922: E/AndroidRuntime(2097): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) 12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:497) 12-01 20:49:04.922: E/AndroidRuntime(2097): at java.lang.ClassLoader.loadClass(ClassLoader.java:457) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.Instrumentation.newActivity(Instrumentation.java:1061) 12-01 20:49:04.922: E/AndroidRuntime(2097): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2093) 12-01 20:49:04.922: E/AndroidRuntime(2097): ... 11 more 12-01 20:49:07.812: I/Process(2097): Sending signal. PID: 2097 SIG: 9 问答

android虚拟机里程序一直停止运行

01-05

ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=edu.nuist.zhangtong.baiduMap/.LoginActivity } logcat: 01-05 00:06:04.698: D/dalvikvm(1225): Not late-enabling CheckJNI (already on) 01-05 00:06:09.188: D/AndroidRuntime(1225): Shutting down VM 01-05 00:06:09.198: W/dalvikvm(1225): threadid=1: thread exiting with uncaught exception (group=0xb2ad2ba8) 01-05 00:06:09.268: E/AndroidRuntime(1225): FATAL EXCEPTION: main 01-05 00:06:09.268: E/AndroidRuntime(1225): Process: edu.nuist.zhangtong.baiduMap, PID: 1225 01-05 00:06:09.268: E/AndroidRuntime(1225): java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.nuist.zhangtong.baiduMap/edu.nuist.zhangtong.baiduMap.LoginActivity}: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread.access$800(ActivityThread.java:135) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.os.Handler.dispatchMessage(Handler.java:102) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.os.Looper.loop(Looper.java:136) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread.main(ActivityThread.java:5017) 01-05 00:06:09.268: E/AndroidRuntime(1225): at java.lang.reflect.Method.invokeNative(Native Method) 01-05 00:06:09.268: E/AndroidRuntime(1225): at java.lang.reflect.Method.invoke(Method.java:515) 01-05 00:06:09.268: E/AndroidRuntime(1225): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) 01-05 00:06:09.268: E/AndroidRuntime(1225): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 01-05 00:06:09.268: E/AndroidRuntime(1225): at dalvik.system.NativeStart.main(Native Method) 01-05 00:06:09.268: E/AndroidRuntime(1225): Caused by: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText 01-05 00:06:09.268: E/AndroidRuntime(1225): at edu.nuist.zhangtong.baiduMap.LoginActivity.onCreate(LoginActivity.java:26) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.Activity.performCreate(Activity.java:5231) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) 01-05 00:06:09.268: E/AndroidRuntime(1225): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159) 01-05 00:06:09.268: E/AndroidRuntime(1225): ... 11 more 01-05 00:07:51.018: I/Process(1225): Sending signal. PID: 1225 SIG: 9 问答

Android studio点击登录注册时程序运行停止为什么 Activity已注册过

05-12

05-12 16:22:06.407 19855-19855/com.example.kira.mynewnote E/SQLiteLog: (1) no such column: password 05-12 16:22:06.407 19855-19855/com.example.kira.mynewnote D/AndroidRuntime: Shutting down VM 05-12 16:22:06.408 19855-19855/com.example.kira.mynewnote E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.kira.mynewnote, PID: 19855 android.database.sqlite.SQLiteException: no such column: password (code 1): , while compiling: select * from User where username=? and password=? at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method) at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:963) at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:517) at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588) at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58) at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37) at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44) at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1346) at android.database.sqlite.SQLiteDatabase.rawQuery(SQLiteDatabase.java:1285) at com.example.kira.mynewnote.LoginActivity$1.login(LoginActivity.java:65) at com.example.kira.mynewnote.LoginActivity$1.onClick(LoginActivity.java:53) at android.view.View.performClick(View.java:4848) at android.view.View$PerformClick.run(View.java:20262) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5714) 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:984) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779) logcat错误红色的部分节选 求大神帮忙解答 问答

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览