我正在阅读本教程:
我刚刚在我的工作区中创建了这个项目:
cordova create hello2 com.example.hello2 "Hello World 2"
cd 进入目录
现在:
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。根据这个: