Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova Please Install Android target 19

I am using Cordova-3.3.0, and when trying to create a project for Android I am getting this following error -

Error: Please install Android target 19 (the Android newest SDK).

I have the latest android installed along with the Android 18 and 17. And even if I use Cordova-3.2.0 I get the same result

Android target 18 not found

.

Please can anyone suggest what might be the problem?

I am using the following along with cordova - ant version 1.9.2 java 1.7.0_45

like image 798
Debopam Mitra Avatar asked Dec 19 '13 09:12

Debopam Mitra


2 Answers

Have you correctly set android SDK tools in your Path ?

For Cordova command-line tools to work, you need to include the SDK's tools and platform-tools directories in your PATH environment. On Mac, you can use a text editor to create or modify the ~/.bash_profile file, adding a line such as the following, depending on where the SDK installs:

You have to install the SDK and include tools and platform-tools directories to your path, after you need to install correct versions of Android (19 in your case).

like image 188
jusabatier Avatar answered Nov 20 '22 04:11

jusabatier


  • Launches " SDK Manger" with administrator rights
  • Install Android 4.4.2 (API 19)
  • and retry command-line : cordova platforms add android
like image 3
Murphy Avatar answered Nov 20 '22 04:11

Murphy