[Solved] AndroidStudio Error: Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused…

 > Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused (Connection refused)
      > Failed to list versions for com.tencent.bugly:symtabfileuploader.
         > Unable to load Maven meta-data from https://dl.google.com/dl/android/maven2/com/tencent/bugly/symtabfileuploader/maven-metadata.xml.
            > Could not get resource 'https://dl.google.com/dl/android/maven2/com/tencent/bugly/symtabfileuploader/maven-metadata.xml'.
               > Could not GET 'https://dl.google.com/dl/android/maven2/com/tencent/bugly/symtabfileuploader/maven-metadata.xml'.
                  > Connect to 127.0.0.1:10887 [/127.0.0.1] failed: Connection refused (Connection refused)

When I run the android Studio project on my mac computer, I get a bunch of error messages, which I have never touched. In fact, if I analyze the error message calmly, I can know that the configuration of the proxy is the cause, but I have closed the proxy, how can I still report the error, is it caused by the cache? Or is it that there are still proxies for local files.

The reason is that the proxy is set in the local, local, local gradle.properties

Solution: open ~/.gradle/gradle.properties

Open gradle.properties file, comment out or delete the code below directly, clear the cache again, and run it OK.

 

Read More: