Persistent Android Compilation Error with Cloud Firestore

Troubleshooting

Hello everyone,

I'm currently facing a frustrating compilation issue with my FlutterFlow project, and I'm hoping to get some help from the community.

My application compiles and runs perfectly on the Web version (Google Chrome) and in FlutterFlow's test mode. However, when I try to compile it for an Android smartphone emulation, I get a persistent compilation error :

FAILURE: Build failed with an exception.

[   +1 ms] * What went wrong:

[        ] Could not determine the dependencies of task ':cloud_firestore:compileDebugJavaWithJavac'.

[        ] > Cannot query the value of this provider because it has no value available.

When i upload the apk directly on the emulated phone it works with no problems.

Any help or suggestions would be greatly appreciated.

Thank you very much.

What have you tried so far?

I have already tried the following solutions without success:

  • flutter clean and flutter pub get

  • Checking and re-importing the google-services.json file

  • Updating all Flutter and Firebase dependencies

  • flutter doctor (everything is fine)

  • Invalidate Caches / Restart in Android Studio

  • Reinstall Android Studio

Did you check FlutterFlow's Documentation for this topic?
Yes
2
6 replies