Open vincentdelmundo opened 3 years ago
Were you able to fix this error?
@jaimealvarezl
Were you able to fix this error?
Not yet. Right now, we are using "cordova-plugin-firebase-crashlytics": "1.0.0".
I found out I had to do so manual changes in order to make it work. Following Firebase Crashlytics getting started guide .
I added classpath 'com.google.firebase:firebase-crashlytics-gradle:2.3.0'
project-level build.gradle
and apply plugin: 'com.google.firebase.crashlytics'
app-level build.gradle
I everything started to work.
Hi, I almost cried when I finally found the solution. Thanks to this issue: https://github.com/chemerisuk/cordova-support-google-services/issues/9
It seems that, postBuildExtras
gets overriden, by any plugin. Well I was already using it somewhere else, so basically, the firebase crashlytics plugin was not being applied, at all. I suggest using cdvPluginPostBuildExtras
which is an array, and any plugin can register its own function to run.
So, the gradle becomes:
cdvPluginPostBuildExtras.add({
apply plugin: com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin
})
I know! I just saved your day! 😍 . Well mine got saved by the good guys that took the time to post this issue on the other cordova plugin. Thanks guys.
cdvPluginPostBuildExtras.add({ apply plugin: com.google.firebase.crashlytics.buildtools.gradle.CrashlyticsPlugin })
@tehmaestro This solved the issue, and saved my day. Thank you!
Expected Behavior
No error.
Actual Behavior
Runtime Error (on app launch):
Steps to Reproduce the Problem
This occurred on app launch.
Specifications
Plugin version:
Framework:
System: