The latest version of Cordova does not support Android 2.3.6 because it is a version that is installed on less than 5% of Android devices currently:
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.
http://cordova.apache.org/docs/en/5.0.0/guide_platforms_android_index.md.html#Android%20Platform%20Guide
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, i.e., includes version 2.3.6):
$ sudo npm install -g [email protected]
See the version that is currently installed:
$ sudo cordova -v
More details on how to install a specific version: http://cordova.apache.org/docs/en/5.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface
Do this, edit the file config.xml
in the root folder of your project and change the preference android-minSdkVersion
for the minimum API value supported by the downloaded version of Cordova. In other words, change this line:
<preference name="android-minSdkVersion" value="14" />
for this:
<preference name="android-minSdkVersion" value="10" />
Ok, I installed an older version. But now how do I add the older version to the project I have?
– Maik Basso
I supplemented the answer.
– Piovezan