OS Error: No address associated with hostname, errno = 7 [How to Solve]

1. OS error: no address associated with host name, errno = 7

2. Switch between HTTP and HTTPS

3. Androidmanifest.xml has been configured

<uses-permission android:name="android.permission.INTERNET"/>

4. Network permissions have been configured in profile and debug

5. GAO found that under Mac, Android virtual machine is not connected to the Internet

6. Click the WiFi icon in the upper right corner — > Open network preferences; In the left menu bar, select Wi Fi — > Click Advanced in the lower right corner; In the top menu bar, select DNS — > Click + — > on the left (DNS server); Add an item “8.8.8.8” and click OK to save it; Go back to the network interface and click Apply
(if you want to keep the previous DNS settings, it is recommended to add more than one in order, such as adding 8.8.8.8 first, then x.x.x, and so on.)

Similar Posts: