Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova-CLI & PhoneGap-CLI do not see android sdk

I've created app with "phonegap create" command. Then I switch to project dir and try to run it with "phonegap local run android" and I have next error message:

Please install Android target 17 <...>

Android SDK is placed to C:\dev\sdk My PATH variable contains C:\dev\sdk; C:\div\sdk\platforms\;C:\dev\sdk\platform-tools I run "android" command from cmd and SDK Manager shows no updates or no missed sdk files. I tried create and run project with cordova cli but had same problem. What can it be?

like image 521
super pantera Avatar asked Jul 17 '13 19:07

super pantera


2 Answers

It seems that for latest Cordova (3.0.6),

cordova platform add android

command only recognize Android 4.2.2(API17) SDK. After I install the API17 SDK, the error was gone. Not sure if there is a cordova command option that can specify SDK version.

like image 105
wangf Avatar answered Sep 25 '22 21:09

wangf


I had just the same problem (error message) with os x (10.8). After executing the command android in the Terminal some android-packet-management-UI popped up. There i could install stuff that made it run ..

like image 23
Benjamin Avatar answered Sep 22 '22 21:09

Benjamin