Make sure you add the below code to your manifest.
First, make sure you add internet permission to manifest
<uses-permission android:name="android.permission.INTERNET" />
Seconds make sure you added usesCleartextTraffic true that will make sure if your API endpoint is not secure still you will able to call API.
<application
android:usesCleartextTraffic="true">
Make sure you add the below code to your manifest.
First, make sure you add internet permission to manifest
<uses-permission android:name="android.permission.INTERNET" />
Seconds make sure you added usesCleartextTraffic true that will make sure if your API endpoint is not secure still you will able to call API.
<application
android:usesCleartextTraffic="true">