I want to know how to set max API 30 (android) ?
We had to do this the other day to submit a new app to google app store…
Add
<engine name="android" spec="10.0.1" />`
to your config.xml
You’ll also probably need to set
"androidPackageType": "bundle"
in the voltbuilder.json file
Cheers
Nick
Nick’s right- add the engine
line to config.xml.
The Android API version is set by the cordova-android version. Recently (in the past 2 weeks) Cordova added support for API 30. The default version of cordova-android is still 9.0.0, which uses API 29. The engine
line overrides that. We expect Cordova to make it the default soon.
androidPackageType is needed if you are building for Google Play Store release. Here’s some more info.
You can see which API version is being used in the log:
Using cordova-fetch for cordova-android@10.0.1
fetch: Installing cordova-android@10.0.1 to /test
Running command: npm install cordova-android@10.0.1 --save-dev
Command finished with error code 0: npm install,cordova-android@10.0.1,--save-dev
Removing "cordova-" prefix from cordova-android
Adding android project...
Platform API successfully found in: /test/node_modules/cordova-android
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.nsbasic.HelloWorld
Name: HelloWorld
Activity: MainActivity
Android target: android-30