w8y 发表于 2016-11-13 11:43:42

dos 输入 cordova platform add android

请大神指教一下

hwq1119 发表于 2016-12-9 20:14:40

看来不少人遇到这个问题,希望高手看一下,我这贴上文字版的,不知道你的完整的错误是不是这样
java.net.ConnectException: Connection timed out: connect

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Failed to find Platform SDK with path: platforms;android-24

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

BUILD FAILED

Total time: 1 mins 56.573 secs
Failed to install 'cordova-plugin-whitelist':Error: cmd: Command failed with exi
t code 1
    at ChildProcess.whenDone (D:\phoneGap\hellomobileword\platforms\android\cord
ova\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: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 n
eed to try adding it again. Error: Error: cmd: Command failed with exit code 1
页: [1]
查看完整版本: dos 输入 cordova platform add android