-
Notifications
You must be signed in to change notification settings - Fork 151
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
Build errors with new flutter SDKs? #41
Comments
Update: Getting the build to work, but I'm now getting database not connecting errors.
|
Fixed my bug reprot/issue efortuna#41. Have to manually change the RealtimeDatabase Rules. Not the cloud_firestore rules. (console.firebase.google.com has changed and deprecated/stopped promoting realtimeDatabase. (I might try to rewrite this to use cloud_firestore since I'll be doing that for my project today, anyway.) Also, small edit to the README.MD on the SHA1 key based on Issue efortuna#40.
Can't get it to work with all the build.gradle stuff. I ended up making a new flutter project and copying the code in. That worked. |
This repo works for me, but it is kinda a mess. TODO later: figure out what the gradle and AndroidManifest changes were that allowed this to work. |
Closing because it's old and other chat implementations have been shared. Underlying code is still interesting. |
I am having problems building this repo after cloning the github. You can reproduce this by trying to clone this repo and then build it.
TLDR version:
Getting build errors that I couldn't fix. I think it may be just a needing to update old pubspec.yaml and build.gradle files (mostly). However, my attempts so far have failed. I'll keep trying.
Loved the memechat video from 2017. Want to try to study this code, but having problems with getting the firebase to run.
(Yes, I checked google-services.json)
Build.gradle missing or old
The
android/app
level build.gradle is missing the firebase implementation documents. My guess: this is because firebase for flutter was different in 2017 vs today.One might need to add something like
The android level build.gradle has an older version of google services (from 2017).
AddListener type checks in 2020.
The addListener method gives a type checking error. This can be fixed by declaring the type. This is the fix I implemented.
Still can't build with Android Studio.
I'm still getting build errors with Android Studio. I've tried a few different things and they don't work.
If I don't include the
implementation
lines for firebase, I get Database can't connect errors. (makes sense... some files missing).If I do include them, I get other errors.
I also tried starting a blank flutter repo and then copying in the code. Similar errors.
Here is one set of the errors I am getting:
My flutter doctor in case it's helpful:
The text was updated successfully, but these errors were encountered: