kruup 发表于 2016-11-21 01:00:45

cordova 6+ android-24 add android 时报错

1.cordova platform add android 时报错


FAILURE: Build failed with an exception.

* Where:
Script 'D:\Android\hello\platforms\android\CordovaLib\cordova.gradle' line: 64

* What went wrong:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Install the Android build tools version 19.1
or higher.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debu
option to get more log output.

BUILD FAILED

Total time: 2.825 secs
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with e
t code 1
    at ChildProcess.whenDone (D:\Android\hello\platforms\android\cordova\node_
dules\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:827:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
Failed to restore plugin "cordova-plugin-whitelist" from config.xml. You might
eed to try adding it again. Error: Error: cmd: Command failed with exit code 1

file:///d:\Documents\Tencent Files\3322540064\Image\C2C\5E$Z7@~9UCH0_5AI)ZQM


kruup 发表于 2016-11-21 01:14:47

创建成功了但无法导入项目   ==》Select at least one project

kruup 发表于 2016-11-21 01:18:45

是因为有同名的工程的,进入windows->show view->project explorer 这里找出来删掉再导入工程即可
页: [1]
查看完整版本: cordova 6+ android-24 add android 时报错