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
}

你可能感兴趣的:(flutter,flutter:x86,Android,android,flutter)