如何解决EBUSY:资源繁忙或锁定在Ionic 3中?

时间:2018-09-17 12:41:20

标签: android node.js cordova ionic-framework ionic3

我使用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。谁能帮我解决此错误?

1 个答案:

答案 0 :(得分:0)

我不确定确切要问什么,是否与在您的手机中调试应用有关,只需运行以下命令

ionic cordova run android --debug --device -l