我在执行“ flutter build appbundle”命令时遇到问题。该问题与与AndroidX不兼容的Flutter软件包有关。虽然,我使用的是最新版本的软件包,而且该项目是使用“ flutter create --androidx'项目名称'”创建的
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'io.fabric.tools:gradle:1.30.0'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}