Build:Download maven-metadata.xml...打包一直卡在这里

Build:Download maven-metadata.xml...打包一直卡在这里_第1张图片

一直在这里不动 

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    
    repositories {
        maven { url 'https://maven.aliyun.com/repository/public'}
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        //百度数据统计
        classpath 'com.baidu.mobstat:mtj-circle-plugin:latest.integration'
        

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        maven { url "https://maven.google.com" } //这一行必须去掉
        maven { url 'https://maven.aliyun.com/repository/public'}
        maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

这个原因是你的app 的gradle 中有无效的连接 , 这些你必须删除才可以 , 另外你可以用上面的 链接来进行替代 

maven { url "https://maven.google.com" }

无效的要删除

 

 

 

 

 

你可能感兴趣的:(Android,Download,maven-metadata,安卓)