小编Iul*_*iko的帖子

Android应用程序启动更新与cordova-webintent并强制停止

步骤: 1)打开Android应用程序(内置cordova)

2)然后我呼吁cordova-webintent安装更新 https://github.com/Initsogar/cordova-webintent

3)我按下Install并开始安装,但几秒后app强制停止并关闭而不是安装并打开更新的应用程序.

这个问题出现在前一段时间,我无法理解为什么会发生这种情况,因为同一版本的cordova-webintentcordova.

4)应用程序强制停止后,我点击应用程序图标,但是有一条消息"未安装应用程序".几秒后,应用程序继续在后台安装.我再次点击应用程序图标,打开更新的应用程序.

请帮助修复安装时app force stop的问题.

日志:

E:\ work\hello1> adb logcat ActivityManager:我com.example.hello1:D*:S

---------系统的开头

I/ActivityManager(715):[后台服务优先级调整]将service.getFlags()的callerFg设置为false:260

I/ActivityManager(715):START u0 {act = android.intent.action.VIEW dat = file:///storage/emulated/0/filename1.apk typ = application/vnd.android.package-archive cmp = com.来自uid 10657的android.packageinstaller/.PackageInstallerActivity}显示0

---------主要的开始

I/ActivityManager(715):从uid 10072上显示0 I/ActivityManager START u0 {dat = file:///storage/emulated/0/filename1.apk cmp = com.android.packageinstaller/.InstallAppProgress(has extras)} (715):[AppLaunch]显示显示的com.android.packageinstaller/.InstallAppProgress:+ 135ms

I/ActivityManager(715):强制停止com.example.hello1 appid = 10657 user = -1:uninstall pkg

I/ActivityManager(715):Killing 19149:com.example.hello1/u0a657(adj 1):stop com.example.hello1

W/ActivityManager(715):通知应用程序开关退出packageName = com.example.hello1 I/ActivityManager(715):强制完成活动ActivityRecord {16a2ad7e u0 com.example.hello1/.MainActivity t2758}

I/ActivityManager(715):强制完成活动ActivityRecord {32eb6933 u0 com.android.packageinstaller/.InstallAppProgress …

android install updates cordova webintents

34
推荐指数
1
解决办法
804
查看次数

标签 统计

android ×1

cordova ×1

install ×1

updates ×1

webintents ×1