我通过这个教程运行:科尔多瓦,Node.js的,PhoneGap的
我刚刚创建我的工作空间内的项目:
cordova create hello2 com.example.hello2 "Hello World 2"
CD插入DIR
现在:
cordova platform add android
给了我以下错误:
The command `android` failed. Make sure you have the latest Android SDK installed, and the `android` command (inside the tools/ folder) added to your path. Output: /bin/sh: android: command not found
我导出路径是这样的:
export PATH=${PATH}:/Documents/DevFolder/adt-bundle-mac-x86_64-20130522/sdk/platform-tools:/Documents/DevFolder/adt-bundle-mac-x86_64-20130522/sdk/tools
有什么不对的路径?
还有什么可能导致此错误。而且,是的,我确实安装了Android SDK。 根据此:
http://developer.android.com/sdk/installing/bundle.html
如果'android'正确添加到路径中,您应该可以从终端调用它。在终端上试试'哪个android',并请回报。 – verybadalloc
谢谢。我没有得到任何回应的Android。 – digit
'echo $ PATH'说什么? – verybadalloc