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?
1 Like
Ensure you have installed android-23 Platform
Run cordova platform update android@5.0.0 in your existing projects.
Arun
Hello,
Did you finally success to change the android Target ? I am facing exactly the same problem.
Hello,
i have same problem and i try fixed it.
config.xml =>
preference name=“android-targetSdkVersion” value=“29”
- ionic cordova platform rm android
- ionic cordova platform add android@8.1.1 or ionic cordova platform add android@{last-version-android on cordova}
you can checkout this link :
https://cordova.apache.org/docs/en/latest/guide/platforms/android/