Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
721 views
in Technique[技术] by (71.8m points)

html - 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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...