美文网首页
卡在Running ‘gradle assembleDebug

卡在Running ‘gradle assembleDebug

作者: 苍老师的眼泪 | 来源:发表于2020-05-27 15:35 被阅读0次
    1. 修改项目中android/build.gradle文件
    buildscript {
        repositories {
            //修改的地方
            //google()
            //jcenter()
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:3.2.1'
        }
    }
    
    allprojects {
        repositories {
            //修改的地方
            //google()
            //jcenter()
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
        }
    }
    

    2.修改Flutter的配置文件, 该文件在Flutter安装目录/packages/flutter_tools/gradle/flutter.gradle

    buildscript {
        repositories {
            //修改的地方
            //google()
            //jcenter()
            maven { url 'https://maven.aliyun.com/repository/google' }
            maven { url 'https://maven.aliyun.com/repository/jcenter' }
            maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.2.1'
        }
    }
    

    相关文章

      网友评论

          本文标题:卡在Running ‘gradle assembleDebug

          本文链接:https://www.haomeiwen.com/subject/oziwahtx.html