How to change the android build sdk target in project.properties


#1

I have tried to set a different android SDK version.

Here are what I put in config.xml:

preference name="android-minSdkVersion" value="16"/>
preference name="android-targetSdkVersion" value="23"/>

After running cordova prepare android

In the generated AndroidManifest.xml, I did get the right setting:

uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23" />

But in the project.properties in the andorid folder, I still get:

target=android-22

I need it to be

target=android-23

What should I put in config.xml to achieve this?


#2

Ensure you have installed android-23 Platform
Run cordova platform update android@5.0.0 in your existing projects.

Arun


#3

Hello,

Did you finally success to change the android Target ? I am facing exactly the same problem.