cdvMinSdkVersion is overridden

Hello team,

plz. help me …

I’m using paid service for Build app but some problem are getting in Android Versions 9,10 and 11 not call http request, But Android version 8.1.0 working fine.

So sharing View Log file :- [Cordova] cdvMinSdkVersion is overridden, try it at your own risk.

More Details then go to url :- https://apps.volt.build/137ef17c-9a2e-4b7c-a761-26cbaa8e5a33/voltbuilder.log

That message is caused by this line in your config.xml:

<preference name="android-minSdkVersion" value="19" />

VoltBuilder calls Cordova for this operation. The minimum SDK version which supported by Cordova is 22.

However, I’m not sure this is what causes your problem at runtime. From the sounds of it, you may running into CORS issues. Can you connect the Android Remote Console to your app when it is running on a device and see if there are any errors?

Added SDK version 22 , But problem are same Android Versions 9,10 and 11 not call http request, But Android version 8.1.0 working fine.

Plz send me suggestion how not connect Api access on Android 9,10 and 11.

Have another look at my last message:

Give that a try and let’s see what happens.

I guess you have encountered the Google cleartext flag. From Android 9 Pie, requests without encryption will not work, and by default, the System will expect you to use TLS.

The easy way to bypass this is to use this attribute in your AndroidManifest.xml where you allow all http requests:

<application android:usesCleartextTraffic="true">
</application>

Although you should try to make your requests through the secure https protocol.

Try to add the whitelist plugin if things still don’t work.

VoltBuilder generates AndroidManifest.xml from the information in your config.xml file, so @maswerdna’s suggestion probably won’t work.

The easiest way to force cleartext is to add this plugin to your config.xml:

<plugin name="cordova-plugin-cleartext">

The first step is still to see what errors are appearing in the Chrome Console.