[Android Studio] Solve the problem that o cannot use local Gradle

As described in the attachment, you need to add the following configuration to the Gradle compilation script

android{
    repositories {
        maven { url 'http://repo1.maven.org/maven2' }
    }
}



http://blog.csdn.net/singleton1900/article/details/12911333

Solve the difficulty of accessing Google servers in China:
1. Start Android SDK Manager;
2. Open the main interface and select "Tools", "Options..." , the "Android SDK Manager - Settings" window pops up;
3. In the "Android SDK Manager - Settings" window, fill in mirrors.neusoft.edu.cn and 80 in the "HTTP Proxy Server" and "HTTP Proxy Port" input boxes , and select the "Force https://... sources to be fetched using http://..." check box; 4. After the setting is complete, click the "Close" button to close the "Android SDK Manager - Settings" window and return to Go to the main interface;
5. Select "Packages", "Reload" in turn.


https://www.cnblogs.com/firstcsharp/p/4381262.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326431228&siteId=291194637