AndroidStudio is always Time out when gradle is upgraded. I have encountered it many times. Let me summarize the solution
1. Gradle download timed out
Find the download link of the gradle version in the project directory ../gradle/wrapper/gradle-wrapper.properties , as shown below:
Copy it to Thunder and download it. After the download is complete, put it in the C:\Users\limh.gradle\wrapper\dists\gradle-4.4-all\9br9xq1tocpiv8o6njlyu5op1 directory, and then re-sync gradle
2. API download timed out
If the problem is not caused by gradle, but reports Read Time out inexplicably , then check the gradle.properties file in your project directory and add the mavenCentral repository: