大家好,我正在尝试构建我的 Ionic 应用程序,但我收到以下错误,有人可以帮助我吗?谢谢(使用的命令:离子科尔多瓦构建安卓(
Installing "ionic-plugin-keyboard" for android
Discovered plugin "cordova-sqlite-storage" in config.xml. Adding it to the project
Installing "cordova-sqlite-storage" for android
installing external dependencies via npm
npm install of external dependencies ok
(node:31485) UnhandledPromiseRejectionWarning: Error: Source path does not exist: resources/android/icon/drawable-hdpi-icon.png
at updatePathInternal (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:145:19)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:223:19
at Array.forEach (<anonymous>)
at Object.updatePaths (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/cordova-common/src/FileUpdater.js:221:33)
at updateIcons (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:387:17)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/lib/prepare.js:49:9
at _fulfilled (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:854:54)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:883:30
at Promise.promise.promiseDispatch (/home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova/node_modules/q/q.js:816:13)
at /home/kill/Documents/iapp/ioo/ionic1/platforms/android/cordova /node_modules/q/q.js:624:44
(node:31485) 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:31485) [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.
运行ionic cordova resources
如果这不起作用,则进入资源文件夹删除ios
并再次运行ionic cordova resources
android
文件夹,并检查resources folder
中icon.png
和splash.png
的文件是否未损坏。