gpt4 book ai didi

使用 `run --device` cli 时,Cordova 总是重新安装应用程序

转载 作者:行者123 更新时间:2023-12-02 15:02:48 26 4
gpt4 key购买 nike

当我使用 cordova run android --device 时,Cordova 总是在安装新应用程序之前卸载应用程序。我想要“更新”我的应用程序,而不是“重新安装”它,因为这会删除所有数据。我怎样才能做到这一点?

Cordova :6.0.0
Cordova-android:5.1.0

最佳答案

终于找到了issue .

Due to the change in CB-9557, the application is ALWAYS uninstalled before being installed.

The solution合并但不在 Cordova-android 5.1.0(此时的最后一个版本)中。所以我们需要手动更新platform/android/cordova/lib/中的文件。

关于使用 `run --device` cli 时,Cordova 总是重新安装应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35124975/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com