Cordova 6.4.0:Android platfrom安装白名单错误 [英] Cordova 6.4.0: android platfrom install Whitelist error
问题描述
我正在设置第一个cordova项目。
在安装全球Cordova并创建第一个应用程序库后
我试图设置android平台在此命令中:
cordova平台add android --save
动作以生成此错误消息结束:
BUILD FAILED
总时间:0.989秒无法安装
'cordova-plugin-whitelist':错误:
/ home / firas / Bureau / Cordova / HelloWorld / HelloWorld / platforms / android / gradlew:
命令失败退出代码1
at ChildProcess.whenDone(/home/firas/Bureau/Cordova/HelloWorld/HelloWorld/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
在emitTwo(events.js:87:13)
在ChildProcess.emit(events.js:172:7)
at maybeClose(internal / child_process.js:821:16)
在Process.ChildProcess._handle.onexit(internal / child_process.js:211:5)错误:
/ home / firas / Bureau / Cordova / HelloWorld / HelloWorld / platforms / android / gradlew:
命令失败退出代码1
我hav试图删除并重新添加adroid平台,但问题仍然存在,我也试过安装白名单插件(cordova plugin add cordova-plugin-whitelist@1.0.0)
,但我也面临同样的问题,并完成无法构建或运行我的第一个HelloWord应用
任何想法
p>
为了解决这个问题,我只是卸载cordova并重新安装它的6.0.0版本,可以提供更稳定的白名单组件 em>步骤:
1。 npm uninstall -g cordova
2。 npm install -g cordova@6.0.0
I'm setting up a first cordova projecct.
After installing globally Cordova and creting a first app repository am trying to set up the android platform within this command:
cordova platform add android --save
But this action ends up by generation this error message :
BUILD FAILED
Total time: 0.989 secs Failed to install 'cordova-plugin-whitelist':Error: /home/firas/Bureau/Cordova/HelloWorld/HelloWorld/platforms/android/gradlew: Command failed with exit code 1 at ChildProcess.whenDone (/home/firas/Bureau/Cordova/HelloWorld/HelloWorld/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:821:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) Error: /home/firas/Bureau/Cordova/HelloWorld/HelloWorld/platforms/android/gradlew: Command failed with exit code 1
i hav tried to remove and re-add the adroid platform , but the problem persists , also i have tried to install the whitelist plugin (cordova plugin add cordova-plugin-whitelist@1.0.0 )
but also i faced the same problem , and finish by not being able to build or run my first HelloWord app
Any ideas ??
this issue appears especially with cordova 6.4.0 (latest until 31 December 2016) .
To solve this problem i have simply uninstalled cordova and re-installed it for the version 6.0.0 which can afford more stability with the whitelist component
Steps :
1. npm uninstall -g cordova
2. npm install -g cordova@6.0.0
这篇关于Cordova 6.4.0:Android platfrom安装白名单错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!