HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to api.weatherstack.com not permitted by network security policy code example
Example: android manifest cleartext traffic permitted
<?xml version="1.0" encoding="utf-8"?>
<manifest ...>
<uses-permission android:name="android.permission.INTERNET" />
<application
...
android:usesCleartextTraffic="true"
...>
...
</application>
</manifest>