Flutter project real machine test startup error

  Kiến thức lập trình
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://developer.huawei.com/repo/' }
    }
}

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

tasks.register("clean", Delete) {
    delete rootProject.buildDir
}
  • Where:
    Build file ‘G:MyItemlianyun_driver_mobileandroidbuild.gradle’ line: 14

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

A problem occurred configuring project ‘:app’.
Could not create task ‘:app:compileFlutterBuildDebug’.
> Cannot get property ‘apiLevel’ on null object

New contributor

huang jiahua is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT