猿问

我们可以对应用程序进行编程以自行重启吗?

在设备上全新安装后,我的应用无法正常运行。用户必须手动关闭应用程序并重新启动它才能正常运行。需要快速修复,就像应用程序在首次启动后自行重启一样简单(这只需要发生 1 次)。


05/22 19:44:57: Launching app

$ adb install-multiple -r -t C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_6.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_4.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\dep\dependencies.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\resources\instant-run\debug\resources-debug.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_9.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_8.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_2.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_3.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_5.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_1.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_7.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\split-apk\debug\slices\slice_0.apk C:\Users\Gregory\AndroidStudioProjects\GAaudioTransform\app\build\intermediates\instant-run-apk\debug\app-debug.apk 

此日志中的错误是以下行:


E/Zygote: isWhitelistProcess - Process is Whitelisted

E/libpersona: scanKnoxPersonas

Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory


素胚勾勒不出你
浏览 87回答 1
1回答

aluckdog

尽管这个问题可能有一些答案,但从我(可能还有大多数用户)的角度来看,这将是一次糟糕的体验。解决原始问题,您执行的任何导致应用程序自行重启的解决方法都可能以用户卸载您的应用程序而告终。保持您的应用稳定和用户满意!
随时随地看视频慕课网APP

相关分类

Java
我要回答