【发布时间】:2019-10-20 10:09:10
【问题描述】:
我正在尝试使用以下命令在我的 cordova 项目中更新我的 android 版本:
cordova platform update android
但这是回应:
Using cordova-fetch for cordova-android@~7.0.0
Updating android project...
(node:4188) UnhandledPromiseRejectionWarning: An in-place platform update is not supported.
The `platforms` folder is always treated as a build artifact in the CLI workflow.
To update your platform, you have to remove, then add your android platform again.
Make sure you save your plugins beforehand using `cordova plugin save`, and save
a copy of the platform first if you had manual changes in it.
cordova plugin save
cordova platform rm android
cordova platform add android
(node:4188) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:4188) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我担心如果我这样做了,我会丢失我所做的一些自定义设置(比如丢失应用程序图标、启动屏幕,并且我编辑了一个方法,以便在应用程序处于全屏模式时键盘可见)
可以通过什么方式实现吗?
【问题讨论】:
-
您能告诉我更多有关您将应用图标和启动画面放在哪里的信息吗?
标签: android cordova updates data-loss