● IntelliJ IDEA生成apk“Read timed out”

  1. 注释掉settings.gradle中dependencyResolutionManagement部分。

  2. build.gradle文件中补上上述注释掉的部分,加入阿里云的镜像地址:

allprojects {
    repositories {
        google()
        mavenLocal()
        mavenCentral()
        maven { url 'https://maven.aliyun.com/repository/public/' }
    }
}