New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase auth plugin crash IOS and android #27422
Comments
The Android error is caused by the migration to AndroidX. Check this comment on how to resolve that issue: #27106 (comment) Have you followed to iOS integration guide from the |
I was getting these errors as well. See if these steps help. At the moment, I can only confirm that both the iOS and Android versions of my app build successfully. I have not yet had a chance to test how thoroughly they are working properly with Firebase. If anyone with more knowledge than I sees anything that shouldn't be done the way I am suggesting or should be done differently, please let me know. The intent of this is to do good, not harm.
iOS First of all, do not add
to your
I don't know that it matters exactly where amongst the keys in the file you put it. I placed it between these two lines:
After these steps (I don't believe I've left anything out), I opened the iOS Simulator (I'm using iPhone XS Max - 12.1) and ran the app and it built successfully. 😃
Android
These were code analysis suggestions by IntelliJ Idea. The change in the Change these lines in the
Either before or after the next step, a pop-up in IntelliJ Idea informed me Kotlin migrations to the new version could be run, so I chose to let it do so.
After these steps (once again, I don't think I've left anything out), I opened the Android Emulator (I'm using the Nexus 5X API 28 because it supports Google Play, which I believe is necessary for Firebase) and ran the app and it built successfully. 😃 Hope this helps. Cheers! UPDATE (03-04-19): See one additional step for Android in my follow up comment below. |
Even though the Android app was building and connecting to Firebase, I was briefly seeing the
to the
as suggested in Dhaval Patel's answer to the stackoverflow question Failed to resolve variable '${animal.sniffer.version}' when migrate to AndroidX and this appears to have resolved it. |
This looks like #27106 |
This issue has been moved to firebase/flutterfire#1117. Any further collaboration will be done there. |
Thank you. It's work... |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Hi,
I'm trying to use the Firebase auth plugin for my app, but after installing everything as explained in the firebase docs and running it, it crash on both Android and IOS.
My
pubspec.yaml
:Crash on IOS:
Crash on android:
flutter doctor -v
The text was updated successfully, but these errors were encountered: