Closed petermusembi69 closed 2 years ago
Hi @petermusembi69 I noticed a couple of issues in your setup.
firebase_auth
based on your pub deps
. The latest is 3.1.1
.app/build.gradle
? The FlutterFire plugins manage these versions internally and are tested against a fixed version. If you override the native SDK then we can't guarantee any behavior.com.google.gms:google-services:4.3.5
. The version we recommend is 4.3.8
These are unlikely to be causing the problem but it's better to check this from a clean setup. Thank you
Hey @markusaksli-nc ,
Thank you for your response, I did change firebase_auth version to 3.1.1
. Concerning overriding the native SDK, that is done when you create a flutter project with VGV, and maybe over time, I made a few edits, however, I removed some dependencies and had this
dependencies {
implementation 'com.android.support:multidex:1.0.3'
implementation platform('com.google.firebase:firebase-bom:26.8.0')
implementation 'com.google.firebase:firebase-analytics'
implementation 'androidx.annotation:annotation:1.1.0'
implementation "androidx.browser:browser:1.2.0"
}
I hope this is in order.
I also upgraded the version to com.google.gms:google-services:4.3.8.
But the same error is persistent.
However I was able to build an apk on this GitHub workflow, which is kind of weird, so that means the issue could be with my current Gradle version or some setup of sorts. I think we can close this issue then If I fix the issue in my local set up I will make sure to comment below.
The only problem really is that the BOM version you are overriding is behind the current internally managed version for the plugins https://github.com/FirebaseExtended/flutterfire/blob/cc13c55d3bdd70c53a864d0cbaa0240d81f1d7c0/packages/firebase_core/firebase_core/android/gradle.properties#L2
Try to see if that fixes it? I'll close the issue for now but let me know if you get stuck.
Bug report
Describe the bug I configured and implemented crashlytics as explained in the docs. While running the app in debug mode on my emulator, I was able to simulate a crash and have it reflect on my firebase console dashboard (image). The problem arises when creating a signed release APK as this fails with the error below.
Error logs
Removing the crashlytics Gradle configuration builds the release APK successfully. I am very certain the issue is related to the Gradle configuration. Here is my app-level build Gradle gist and my project-level build Gradle gist and finaly my gradle.properties gist.
Steps to reproduce
Steps to reproduce the behavior:
Add the crashlytics in main() function in my dart file as shown below.
Expected behavior
Build a signed release APK successfully after configuration.
Sample project
N/A
Additional context
I am using the very good ventures template.
Flutter doctor
Flutter dependencies