Cordova Build Android Error

Background

An update of Android Studio requires me to move Android SDKs out of the Application folder.

Problem

After I moved it, I got the following error when I do “cordova build android”

BUILD FAILED
/Users/Henry/android-sdks/tools/ant/build.xml:483: The SDK Build Tools revision (18.0.1) is too low for project 'CordovaApp'. Minimum required is 19.1.0

Troubleshoot

I launch Android SDK Manager from Android Studio and it turns out that SDK Manager is still look at the old SDK Path, the one in the Application folder.

Fix

  1. Launch Android Studio
  2. On the right panel, select Configure –> Project Defaults –> Project Structure
  3. Specify the correct Android SDK location and click OK.
  4. Go back and select Configure –> SDK Manager.
  5. Verify that SDK Manager has the correct SDK Path. 
  6. Install the latest (i.e. highest Rev.) Android SDK Build-tools

Reference:

http://stackoverflow.com/questions/16581752/android-studio-how-to-change-android-sdk-path

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s