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…
<engine name="android" spec="10.0.1" />`
to your config.xml
You’ll also probably need to set
in the voltbuilder.json file
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 firstname.lastname@example.org fetch: Installing email@example.com to /test Running command: npm install firstname.lastname@example.org --save-dev Command finished with error code 0: npm install,email@example.com,--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