Running Gradle taskassembleDebug

用Android Stduio创建Flutter项目时候,会出现各种问题,踩了一个一个最后编译的时候可能出现一直显示Running Gradle taskassembleDebug然后就不动了解决方案

buildscript {
    repositories {
//注释
        // google()
        // jcenter()
//添加
        maven { url 'https://maven.aliyun.com/repository/google' }
        maven { url 'https://maven.aliyun.com/repository/jcenter' }
        maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
    }
}

好像会出现新的问题

在这里插入图片描述

出现问题不要慌 继续百度

问题描述

gradle.build仓库更换阿里仓库报错

新问题解决方案

1.在仓库添加关键字
allowInsecureProtocol = true
在这里插入图片描述

2.这里面http要改成https在这里插入图片描述

再运行就完美通过编译
在这里插入图片描述

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注