今天,我在Mac OS X Mavericks上尝试了PhoneGap / Cordova 。iOS的构建进行得很好,但Android的构建并非没有猜测。
我通过Android SDK Manager安装了Android 4.2.2(我必须使用较旧的API v17,因为它与较新的API不兼容),添加PATH environment variables
了SDK的platform-tools
,tools
并认为我准备通过运行命令来开始:
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.