gpt4 book ai didi

android - Android依赖项 'com.google.firebase:firebase-iid'对于编译(19.0.0)和运行时(20.0.1)类路径具有不同的版本

转载 作者:行者123 更新时间:2023-12-03 03:37:08 25 4
gpt4 key购买 nike

尝试使用Flutter构建Android应用程序时发生错误。

我已经尝试过此解决方案,但是它不起作用。

我想要一个提示来解决它。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.google.firebase:firebase-iid' has different version for the compile (19.0.0) and runtime (20.0.1) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
io.flutterio.flutterio.flutterandroidx.multidexcom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.android.supportio.flutter.plugins.flutter_plugin_android_lifecycleio.flutter.plugins.firebase.cloudfirestorecom.roughike.fluttertwitterlogin.fluttertwitterloginio.flutter.plugins.firebase.firebaseremoteconfigio.flutter.plugins.firebase_core_webio.flutter.plugins.firebaseauthio.flutter.plugins.imagepickerio.flutter.plugins.firebase.storageio.flutter.plugins.packageinfoio.flutter.plugins.firebaseauth_webio.flutter.plugins.sharedpreferencescom.flutter.keyboardvisibilityio.flutter.plugins.firebasemessagingio.flutter.plugins.url_launcher_macosio.flutter.plugins.firebase.coreio.flutter.url_launcher_webcom.tekartik.sqfliteio.flutter.plugins.urllauncherio.flutter.plugins.pathproviderandroidx.lifecycleandroidx.lifecycleandroidx.lifecycleandroidx.fragmentandroidx.annotationcom.google.firebaseandroidx.annotationandroidx.fragmentcom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.google.guavacom.squareup.okhttpio.grpcio.grpcio.grpcio.grpcandroidx.collectionandroidx.localbroadcastmanagercom.google.android.gmscom.google.firebasecom.twitter.sdk.androidcom.google.firebasecom.google.firebasecom.google.code.gsonandroidx.arch.corecom.google.android.gmscom.google.android.gmscom.google.android.gmsandroidx.coreandroidx.legacyandroidx.legacyandroidx.loaderandroidx.lifecyclecom.google.auto.valueandroidx.annotationcom.google.firebasecom.squareup.retrofit2com.squareup.retrofit2com.google.code.gsoncom.squareup.okhttp3com.google.android.gmscom.google.android.gmscom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.google.android.gmscom.google.firebasecom.google.firebasecom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.firebasecom.google.firebaseandroidx.lifecycleandroidx.versionedparcelableandroidx.customviewandroidx.viewpagerandroidx.coordinatorlayoutandroidx.drawerlayoutandroidx.slidingpanelayoutandroidx.interpolatorandroidx.swiperefreshlayoutandroidx.asynclayoutinflaterandroidx.cursoradapterandroidx.documentfileandroidx.printandroidx.lifecyclecom.google.auto.valuecom.google.protobufcom.squareup.okioio.grpccom.squareup.okhttpcom.squareup.okioio.grpccom.google.guavacom.squareup.okhttp3com.squareup.okiocom.google.firebasecom.google.android.gmscom.google.firebaseandroidx.lifecycleandroidx.arch.coreandroidx.arch.coreandroidx.lifecycleio.opencensusio.grpccom.google.androidio.opencensusio.grpccom.google.errorpronecom.google.code.findbugsorg.codehaus.mojoorg.checkerframeworkcom.google.j2objcio.flutterio.flutterio.flutterandroidx.multidexcom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.android.supportio.flutter.plugins.flutter_plugin_android_lifecycleio.flutter.plugins.firebase.cloudfirestorecom.roughike.fluttertwitterlogin.fluttertwitterloginio.flutter.plugins.firebase.firebaseremoteconfigio.flutter.plugins.firebase_core_webio.flutter.plugins.firebaseauthio.flutter.plugins.imagepickerio.flutter.plugins.firebase.storageio.flutter.plugins.packageinfoio.flutter.plugins.firebaseauth_webio.flutter.plugins.sharedpreferencescom.flutter.keyboardvisibilityio.flutter.plugins.firebasemessagingio.flutter.plugins.url_launcher_macosio.flutter.plugins.firebase.coreio.flutter.url_launcher_webcom.tekartik.sqfliteio.flutter.plugins.urllauncherio.flutter.plugins.pathproviderandroidx.lifecycleandroidx.lifecycleandroidx.lifecycleandroidx.fragmentandroidx.annotationcom.google.firebaseandroidx.annotationandroidx.fragmentcom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.google.guavacom.squareup.okhttpio.grpcio.grpcio.grpcio.grpcandroidx.collectionandroidx.localbroadcastmanagercom.google.android.gmsandroidx.annotationcom.google.firebasecom.google.firebasecom.twitter.sdk.androidcom.google.firebasecom.google.firebasecom.google.firebasecom.google.code.gsonandroidx.corecom.google.firebasecom.google.firebaseandroidx.arch.corecom.google.android.gmscom.google.android.gmscom.google.android.gmsandroidx.coreandroidx.legacyandroidx.legacyandroidx.loaderandroidx.lifecyclecom.google.auto.valuecom.google.firebasecom.squareup.retrofit2com.squareup.retrofit2com.google.code.gsoncom.squareup.okhttp3com.google.android.gmscom.google.android.gmscom.google.firebasecom.google.firebasecom.google.firebasecom.google.firebasecom.google.android.gmscom.google.firebaseandroidx.lifecycleandroidx.versionedparcelablecom.google.firebasecom.google.firebasecom.google.firebasecom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.android.gmscom.google.firebaseandroidx.customviewandroidx.viewpagerandroidx.coordinatorlayoutandroidx.drawerlayoutandroidx.slidingpanelayoutandroidx.interpolatorandroidx.swiperefreshlayoutandroidx.asynclayoutinflaterandroidx.cursoradapterandroidx.documentfileandroidx.printandroidx.lifecyclecom.google.protobufcom.squareup.okioio.grpccom.squareup.okhttpcom.squareup.okioio.grpccom.google.guavacom.squareup.okhttp3com.squareup.okiocom.google.firebaseandroidx.lifecycleandroidx.arch.corecom.google.firebasecom.google.android.gmsandroidx.arch.coreandroidx.lifecycleio.opencensusio.grpccom.google.androidio.opencensusio.grpccom.google.errorpronecom.google.code.findbugsorg.codehaus.mojoorg.checkerframeworkcom.google.j2objccom.android.tools.build
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
The plugin cloud_firestore could not be built due to the issue above.
Exited (sigterm)

最佳答案

cloud_firestore插件正在使用新的firestore版本,该版本需要androidX。因此,您需要将您的应用程序迁移到AndroidX。您可以在此处找到如何迁移:

https://flutter.dev/docs/development/androidx-migration#how-do-i-migrate-my-existing-app-plugin-or-host-editable-module-project-to-androidx

关于android - Android依赖项 'com.google.firebase:firebase-iid'对于编译(19.0.0)和运行时(20.0.1)类路径具有不同的版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60114454/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com