它突然发生了。一天我运行我的代码,它工作得很好,第二天,没有触及我的 build.gradle 文件或任何其他构建文件,这个错误弹出。
我尝试了很多不同的解决方案,例如更改我的 buildToolsVersion 或将 AAPT 的特定标志(不记得是哪个)设置为 false。什么都行不通。我的 app\build.gradle 文件:
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
lintOptions {
disable 'InvalidPackage'
}
defaultConfig {
// TODO: Specify your own unique Application ID
(https://developer.android.com/studio/build/application-id.html).
applicationId "com.skydevs.bookx"
minSdkVersion 16
targetSdkVersion 27
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release`
works. …Run Code Online (Sandbox Code Playgroud)