The latest version of Cordova does not support Android 2.3.6 because it is installed on less than 5% of Android devices today:
Cordova supports Android 4.0.x (starting with Android API level 14)
and higher. As a general rule, Android versions become unsupported by
Cordova as they dip below 5% on Google's distribution dashboard.
Android versions earlier than API level 10, and the 3.x versions
(Honeycomb, API levels 11-13) fall significantly below that 5%
threshold
link
You can try to solve this by installing an older version of Cordova (for example, the version I have installed currently supports Android API 10 and higher, ie includes version 2.3.6):
$ sudo npm install -g [email protected]
View the version that is currently installed:
$ sudo cordova -v
More details on installing a specific version: link
Once done, edit the config.xml
file in the root folder of your project and change the android-minSdkVersion
preference to the minimum API value supported by the downloaded Cordova version. In other words, change this line:
<preference name="android-minSdkVersion" value="14" />
by this:
<preference name="android-minSdkVersion" value="10" />