Tuesday, July 2, 2013

Cordova android create error: "SDK does not have any Build Tools installed."

When running create command on mac to create android cordova project, an error may happen when executing "ant jar". The reason is when updating the Android SDK Tool to  22, somehow the Android SDK build tool was not installed. This can be found from Android SDK Manager, if Android SDK build tool item is not shown under tools item.

Somehow even if running check for update from eclipse does not install it.

To fix the issue run the following command from terminal app.

android update sdk -u

In addition, it is easy to check or change Android SDK manager proxy setting by just running "android" command from terminal.

If you run "create" from phonegap download, then this will not be an issue, as phonegap download already pre-build and install the cordova.jar within the downloaded zip file.

3 comments: