flutter 报错 x86

Flutter 报错 Could not resolve io.flutter:x86_debug:1.0.0-ee76268252c22f5c11e82a7b87423ca

解决办法

buildscript {
    ext.kotlin_version = '1.3.50'
    repositories {
        google()
        jcenter()
        //添加如下代码
        maven { url "http://download.flutter.io"}
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        //添加如下代码
        maven { url "http://download.flutter.io"}
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

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

上一篇:从零开始-06-Android项目搭建


下一篇:windows环境里React-Native运行失败的原因之一,缺少依赖