Solve Android studio connection Timeout problem

error as follows

Connect to [] failed

is an IP whose DNS is not resolved to the domain name or an error occurs during the resolution.

1. Baidu an IP query url, enter the domain name, find the corresponding IP

2. Let’s look at the first few pings to see if they work, so let’s pick the first one

3. Find the file hosts of your computer, C:\Windows\System32\drivers\etc\hosts
write the domain name and the corresponding IP into the file.

Read More: