Skip to content Skip to sidebar Skip to footer

Cordova Build For Android Level Api 20

I am trying to build an app made with Angular2 + Ionic2 (ie. Cordova 6) for my android 4.4.4. I have noticed the version 4.4.4 of android was reffered to the api level 20, so this

Solution 1:

When you build for Android there is targetSdkVersion and minSdkVersion.

targetSdkVersion indicates wich version of the API will be used to compile the program, not wich version of Android must be on the device the program will be run on.

minSdkVersion indicates the minimum version of android a device must have to be compatible with your program.

If you downgrade the targetSdkVersion, you are limited to older functions and if your program uses the newer functions it will fail to compile (I think it's what happens if you try to compile a Cordova version designed for API 23 with API 20).

By default Cordova (at least for the version 5.1 of cordova-android) uses the targetSdkVersion 23 and the minSdkVersion 14, which means programs should work on devices runing Android Ice Cream Sandwich (4.0) or newer.

In your case, all you have to do is install SDK 23 and don't touch anything to try to change the target SDK.

Post a Comment for "Cordova Build For Android Level Api 20"