I am developing an android application on Android L (5.0.1). I have internet permission in my manifest as follows:
<uses-permission android:name="android.permission.INTERNET" />
I am receiving the following error:
Unable to resolve host <url>: No address associated with hostname
while running my application.
Restarting the Wifi on the phone while the application is open fixes the issue for that session. That means the URL is working fine. Doing this each time while testing the application is time consuming. This is also unacceptable in production.
Could not find any similar issues online. Any help would be greatly appreciated.
website URL: