How to run my project Phonegap Cordova on a mobile phone with Android 2.3.6?

3

Hello, I'm developing a game with html5 and javascript like tcc. I am using the cordova to generate versions for different platforms, I have several androids devices to test the project, however only with the command "cordova run" run the project in androids with version 4.1.2 or higher the detail is that I would need to run the design on android 2.3.6 phones as well. Some interesting points: - I use Linux Ubuntu 15.04 as an operating system. - I already researched the versions of the Cordova platforms I found some commands but it did not work.

    
asked by anonymous 12.07.2015 / 07:57

1 answer

1

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" />
    
13.07.2015 / 13:34