cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark E. Scott Jr." <>
Subject RE: Confused about Android API level and Cordova, does it support anything less than 19
Date Wed, 24 Sep 2014 19:54:13 GMT
Apologies for this, I misread the mailing list text at,
didn't realize that this was for development of Cordova, not developing with Cordova.


-----Original Message-----
From: Mark E. Scott Jr. [] 
Sent: Wednesday, September 24, 2014 2:49 PM
Subject: Confused about Android API level and Cordova, does it support anything less than


If I have android API 19 installed, everything works fine, I can execute the command "cordova
platform add android".  However, to support the Galaxy S 3 devices we have for test, I need
API level 17.  According to the Cordova docs for 3.5.0<>,
it supports  API level 10 and later.

Things still worked when I added API level 17, but we noticed it was still using the API level
19.  Upon removing API level 19, I get the following error executing "cordova platform add

Error: Please install Android target 19 (the Android newest SDK). Make sure you have the latest
Android tools installed as well. Run "android" from your command-line to install/update any
missing SDKs or tools.
    at C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\lib\check_reqs.js:80:29
    at _fulfilled (C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:798:54)
    at self.promiseDispatch.done (C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:827:30)
    at Promise.promise.promiseDispatch (C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:760:13)
    at C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:574:44
    at flush (C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\node_modules\q\q.js:108:17)
    at process._tickCallback (node.js:419:13)
Error: C:\Users\mscott\.cordova\lib\android\cordova\3.5.1\bin\create.bat: Command failed with
exit code 8
    at ChildProcess.whenDone (D:\projects\mobile\EMS-Mobile\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

Does it, or does it not actually support earlier Android API levels?  Do I have to move to
an earlier version of Cordova to support API level 17?

I am using this in conjunction with phonegap, but was starting with the simple command of
adding a platform.  I'm aware there is a preference for SDK level in the config.xml, but it
didn't appear to have any affect on the cordova add platform command.

I'm getting ready to add API 19 back in conjunction with the config.xml preferences in place,
to see if it will compile with the right SDK tools in that scenario.


Mark E. Scott, Jr.

View raw message