':app:transformDexArchiveWithExternalLibsDexMergerForDebug' error after adding firebase auth plugin in flutter

后端 未结 4 1606
攒了一身酷
攒了一身酷 2021-01-28 09:52

I am getting some errors after installing the firebase_auth plugin and updating the other firebase plugin versions. I tried some solutions including do

相关标签:
4条回答
  • 2021-01-28 10:27

    Upgrade your whole firebase plugins as new

    0 讨论(0)
  • 2021-01-28 10:41

    Man i had a problem like this just one day ago. This is probably conflict between support library and androidx in your dependencies. Take a look at this issue. In my case i solve this manually removing all dependencies from my project in pubspec and add one by one with new updated version that already use androidx and migrate my project too. Well i try IDE androidX migration tool but without success. Finally be aware with thrid part libraries some of them take a time to update and create problems like this.

    0 讨论(0)
  • 2021-01-28 10:43

    I had same problem and i updated as follows

    compile 'com.google.firebase:firebase-core:11.0.4'
    compile 'com.google.firebase:firebase-auth:11.0.4'
    compile 'com.google.firebase:firebase-messaging:11.0.4'
    

    to

    implementation 'com.google.firebase:firebase-core:16.0.0'
    implementation 'com.google.firebase:firebase-auth:16.0.1'
    implementation 'com.google.firebase:firebase-messaging:17.0.0'
    

    Check latest version and update accordingly https://firebase.google.com/support/release-notes/android

    0 讨论(0)
  • 2021-01-28 10:49

    I ended up fixing my error by following this: https://github.com/flutter/flutter/issues/27128#issuecomment-457918930

    Here's some other notes:

    1. When updating the distributionUrl in gradle-wrapper.properties I used 4.10.2. Your version might be different depending when you do this I'm guessing.
    2. If you can't find the "Sync Project with Gradle Files" command follow this Not able to sync dependency in build.gradle in flutter
    0 讨论(0)
提交回复
热议问题