我试图在更新到android 1.9.1修补程序6后在android 9上朗诵我的应用程序,并在运行应用程序时继续getingme同样的错误
,我将所有依赖项和插件更新为最新的
这是我的所有配置
这是我的项目ymlDependecys
environment:
sdk: ">=2.4.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_crashlytics: ^1.0.0
rxdart: 0.22.2
kiwi: ^0.2.0
http: ^0.12.0+2
shared_preferences: ^0.5.3+4
image_picker: ^0.6.1+4
photo_view: ^0.5.0
cached_network_image: ^1.1.1
smooth_star_rating: ^1.0.2
carousel_slider: ^1.3.1
dio: ^2.1.0
url_launcher: ^5.1.3
webview_flutter: ^0.3.5+3
flare_flutter: ^1.7.1
geolocator: ^5.1.3
path_provider: ^1.4.4
sqflite: ^1.1.7+2
版本6.0.1 android /build.gradle
ext.kotlin_version = '1.3.50'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.2.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
}
android / app / build.gradle
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'
让我一直说这个错误,我拥有最新版本的sqflite
[ ] > Task :app:processDebugGoogleServices FAILED
[ ] Parsing json file: ***\code\mobile-app\android\app\google-services.json
[ +1 ms] *********************************************************
[ ] WARNING: This version of sqflite will break your Android build if it or its dependencies aren't compatible with AndroidX.
[ ] See ..... for more information on the problem and how to fix it.
[ ] This warning prints for all Android build failures. The real root cause of the error may be unrelated.
[ ] *********************************************************
[ ] 42 actionable tasks: 4 executed, 38 up-to-date
答案 0 :(得分:0)
警告:如果此版本的sqflite或其依赖项与AndroidX不兼容,则它将破坏您的Android构建。
从此日志错误中您可以看到,由于插件与androidX不兼容,您的应用将崩溃
最新版本的flutter要求您的应用启用androidX才能运行
答案 1 :(得分:0)
实际上错误是gradle文件和android清单不匹配