今天我try 了PhoneGap/Cordova和Mac OS X Mavericks.iOS版的构建进展顺利,但Android版的构建并非没有猜测.
我通过Android SDK管理器安装了Android 4.2.2(我不得不使用较旧的API v17,因为它与较新的版本不兼容),为SDK的platform-tools
和tools
添加了100,并认为可以通过运行以下命令来启动:
phonegap run android
尽管如此,我还是犯了以下错误:
[phonegap] detecting Android SDK environment...
[phonegap] using the local environment
[phonegap] adding the Android platform...
[error] An error occured during creation of android sub-project. ERROR : executing command 'ant', make sure you have ant installed and added to your path.