Solution to the problem that the gradle dependency package cannot be downloaded

Recently, I have configured AndroidStudio at home. Due to various attempts, I downloaded a lot of installation-free versions and ran it several times. However, the examples that were able to compile and run in the past cannot be run. So I searched the Internet and finally found a solution. Let me summarize:

  1. The gradle version and AndroidStudio’s gradle plugin version are inconsistent, which means that AndroidStudio 3.6.3 requires gradle plugin version 5.6.0 and above. So, if you are wrong, just go and change it. You can go to my other articles to look for it. There is a corresponding map of this version. Or look at the documentation on the official Android developer website.
  2. The proxy setting problem, originally, after clearing the proxy in the settings in AndroidStudio, in principle AndroidStudio should clear the proxy address, but AndroidStudio did not clear it. The location on my machine is: C:\Users\dell.gradle, there is a gradle.properties file, you can just comment out the proxy address inside. What I set here is Neusoft's address. You can clear it manually. It doesn't work if you say HTTP proxy cancellation in AndroidStudio.
    Insert picture description here
    Insert picture description here
    Insert picture description here

Guess you like

Origin blog.csdn.net/poolooloo/article/details/106191522