Hi everyone,
I’m migrating my Android Task Application (originally built with Java/Kotlin and SQLite) to Flutter using Dart. I’ve successfully set up most of the UI and integrated Firebase for real-time ads. However, after adding the Firebase dependencies, Gradle sync fails, and I can’t build the project.
Here’s what I’ve done so far:
- Set up Firebase in the
android/app
withgoogle-services.json
- Updated
build.gradle
(both project and app level) - Added dependencies for Firebase and SQLite
- Applied the necessary plugins
Errors I’m seeing:
sql
CopyEdit
[Insert specific error message here, e.g. "Could not resolve com.google.firebase:firebase-ads:xx.x.x"]
What I’ve tried:
- Running
flutter clean
andflutter pub get
- Checking internet connection and proxy settings
- Making sure the
google-services
plugin version matches the Firebase BOM
I’d appreciate any suggestions or guidance on what to look into or how to resolve this. Thanks in advance!