PhoneGap中文网

标题: cordova 6+ android-24 add android 时报错 [打印本页]

作者: kruup    时间: 2016-11-21 01:00
标题: 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

[img]file:///d:\Documents\Tencent Files\3322540064\Image\C2C\5E$Z7@~9UCH0_5AI)ZQM[J8.png[/img]


QX04R(IJ(61`@_7A[0Y7GK3.png (6.43 KB, 下载次数: 436)

目结构

目结构

作者: kruup    时间: 2016-11-21 01:14
创建成功了  但无法导入项目   ==》Select at least one project
作者: kruup    时间: 2016-11-21 01:18
是因为有同名的工程的,进入windows->show view->project explorer 这里找出来删掉再导入工程即可




欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/) Powered by Discuz! X3.2