我使用ionic cordova run android
在Android设备上运行Ionic 3应用程序。
它给出以下错误。
Android Studio project detected
(node:3780) UnhandledPromiseRejectionWarning: Error: EBUSY: resource busy or loc
ked, open 'E:\6124Petsoo_Sep5\platforms\android\app\src\main\res\xml\config.xml'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.writeFileSync (fs.js:1299:33)
at ConfigFile_save [as save] (E:\6124Petsoo_Sep5\platforms\android\cordova\n
ode_modules\cordova-common\src\ConfigChanges\ConfigFile.js:93:12)
at E:\6124Petsoo_Sep5\platforms\android\cordova\node_modules\cordova-common\
src\ConfigChanges\ConfigKeeper.js:60:49
at Array.forEach (<anonymous>)
at ConfigKeeper_save_all [as save_all] (E:\6124Petsoo_Sep5\platforms\android
\cordova\node_modules\cordova-common\src\ConfigChanges\ConfigKeeper.js:58:31)
at PlatformMunger_save_all [as save_all] (E:\6124Petsoo_Sep5\platforms\andro
id\cordova\node_modules\cordova-common\src\ConfigChanges\ConfigChanges.js:65:24)
at updateConfigFilesFrom (E:\6124Petsoo_Sep5\platforms\android\cordova\lib\p
repare.js:102:41)
at Api.module.exports.prepare (E:\6124Petsoo_Sep5\platforms\android\cordova\
lib\prepare.js:42:20)
at Api.prepare (E:\6124Petsoo_Sep5\platforms\android\cordova\Api.js:192:45)
(node:3780) 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:3780) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
Node.js process with a non-zero exit code.
我在我的应用程序中使用了Ionic 3和Angular 4。谁能帮我解决此错误?
答案 0 :(得分:0)
我不确定确切要问什么,是否与在您的手机中调试应用有关,只需运行以下命令
ionic cordova run android --debug --device -l