When the download is a android android project on github

Foreword

github is a good community, and sometimes do, we can not build the project downloaded from the android down for many reasons, such as the library was gone, or that he did not had supported api version installed, etc., will encounter a variety of problems.

In this summary.

Problems and Solutions

Download the package is not down

There on the Chinese Internet is a feature that there is something called the Great Wall of red, a lot of people, also known as black Great Wall, a different name for different perspectives of Kazakhstan. Anyway, in the country to go abroad to stroll the Internet, we need to climb over.

If the company supports international roaming (with domestic operators signed an additional protocol), of course, it is not necessary. But then, the company also supports international roaming sector it the pit, nor want to be able to access the. So many people use shadowsock, need a proxy, so that you can visit enjoyable.

When we use the shadowsock this agency, still builde.gradle configuration required under the root directory, so that we can get maven repository.

repositories {
    jcenter()
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}
allprojects {
    repositories {
        jcenter()
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
    }
}

Some people question, why use google () do? This is not to ok it?
Here are some major low version does not support, the following requirements:

Gradle 4.0 and later
Android Studio 3.0 and later
Gradle plugin for android 3.0 and later

So, google () or not to go to the muddy water.
Of course, if there is no agent, you can use the following address:

https://dl.google.com/dl/android/maven2/

Follow-up

Forget that experience to write about.

Guess you like

Origin www.cnblogs.com/aoximin/p/12165450.html