升级后开机就提示“android.process.acore”停止运行 --分析 解决方案
2014-11-06 14:58
453 查看
OTA升级的,升级引发的所有问题都是可以解释的,有的能解决,有的不能解决。
一个项目报了这个问题。升级后开机就提示“android.process.acore”停止运行
抓取 adb log 看到了 下面的这个 fatal 的log
11-06 14:40:33.633 3827 3827 E AndroidRuntime: FATAL EXCEPTION: main
11-06 14:40:33.633 3827 3827 E AndroidRuntime: Process: android.process.acore, PID: 3827
11-06 14:40:33.633 3827 3827 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.providers.contacts.CallLogProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 851 to 850
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5043)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4614)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:151)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1402)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5324)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
从log可以看到 om.android.providers.contacts 联系人模块的数据库出问题了。问题的原因是 Can't downgrade database from version 851 to 850 ,就是说,无法从高级版本的数据库降级到低级版本的数据库。这个应该是android 的限制导致。
google 一下 为什么呢?
stackvoerflow 有人解释了一下 ,如果你继承下面 onDowngrade
就可以了。但是是联系人是不可以这样做的吧~~
you are using
you want to be able to run your application with a database on the device with a higher version than your code can handle.
You should care about this "Database Version thing" if ever your database schema is ever going to change (and in general, there is good chance it would).
解决方法: 先备份联系人数据。(最好是网络备份,完全备份db的话可能没有效果)
方法一
1设置-应用程序管理--联系人--清空数据 2 设置-应用程序管理--拨号盘-清空数据
方法二、 设置-恢复出厂设置 --清空所有数据。然后自动重启到recovery 然后就可以了--等着 一会就好了
一个项目报了这个问题。升级后开机就提示“android.process.acore”停止运行
抓取 adb log 看到了 下面的这个 fatal 的log
11-06 14:40:33.633 3827 3827 E AndroidRuntime: FATAL EXCEPTION: main
11-06 14:40:33.633 3827 3827 E AndroidRuntime: Process: android.process.acore, PID: 3827
11-06 14:40:33.633 3827 3827 E AndroidRuntime: java.lang.RuntimeException: Unable to get provider com.android.providers.contacts.CallLogProvider: android.database.sqlite.SQLiteException: Can't downgrade database from version 851 to 850
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.installProvider(ActivityThread.java:5043)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.installContentProviders(ActivityThread.java:4614)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:151)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1402)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.os.Looper.loop(Looper.java:193)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5324)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:829)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:645)
11-06 14:40:33.633 3827 3827 E AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
从log可以看到 om.android.providers.contacts 联系人模块的数据库出问题了。问题的原因是 Can't downgrade database from version 851 to 850 ,就是说,无法从高级版本的数据库降级到低级版本的数据库。这个应该是android 的限制导致。
google 一下 为什么呢?
stackvoerflow 有人解释了一下 ,如果你继承下面 onDowngrade
就可以了。但是是联系人是不可以这样做的吧~~
you are using
Android SQLiteOpenHelper, you need to override
onDowngradeif
you want to be able to run your application with a database on the device with a higher version than your code can handle.
You should care about this "Database Version thing" if ever your database schema is ever going to change (and in general, there is good chance it would).
解决方法: 先备份联系人数据。(最好是网络备份,完全备份db的话可能没有效果)
方法一
1设置-应用程序管理--联系人--清空数据 2 设置-应用程序管理--拨号盘-清空数据
方法二、 设置-恢复出厂设置 --清空所有数据。然后自动重启到recovery 然后就可以了--等着 一会就好了
相关文章推荐
- 抱歉,进程“android.process.acore”已停止运行 - 解决方法
- android.process.acore已意外停止
- 打开通讯录编辑联系人弹出 android.process.acore 进程意外停止,请重试[已解决]
- Android7.1上报的CNEService/WbcService/LauncherUnreadService停止运行错误,拔掉电池重启开机几次才不报
- Android:分析app、Process、Task之间的区别,以及获取最近运行的程序(近期任务)与正在运行的程序
- Android:分析app、Process、Task之间的区别,以及获取最近运行的程序(近期任务)与正在运行的程序
- Android:分析app、Process、Task之间的区别,以及获取最近运行的程序(近期任务)与正在运行的程序
- Android新建.Java,更改manifest.xml后打开应用,提示“停止运行”并强制退出原因
- 转-"进程android.process.acore已意外停止" 解决办法
- android提示错误: The process android.process.acore has stopped unexpectedly.Please try again
- 抱歉,进程android.process.media,已停止运行的解决办法
- android.process.acore不运行及其它问题解决
- XP开机蓝屏或提示“登录进程初始化失败”的原因分析及解决方案
- nginx平滑重启过程中提示[alert] kill(2942, 1) failed (No such process)问题分析及解决方案
- RobotFramework使用chrome打开浏览器,提示chromedriver.exe停止运行的解决方案
- android虚拟设备怎么老是提示 “谷歌拼音输入法”已停止运行
- Android获取运行进程解决方案分析
- android看不见main函数怎么办?程序异常了,可以不提示“xxx软件停止运行”吗?
- android虚拟设备怎么老是提示 “谷歌拼音输入法”已停止运行
- 进程“android.process.acore”已意外停止的问题