-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
UnmetDependencyException: This app relies on Crashlytics #848
Comments
@herrskytte have you setup Crashlytics in the firebase console? |
I'm trying to see if we missed anything when configuring Crashlytics for android based on the firebase setup guide, but it seems we followed the necessary steps. Hopefully someone from the community that uses Crashlytics on android can help out with this issue. |
@soumak77 Yes, it's set up I think. It's working for iOS, and for Android it just says I need to add the sdk to my app to begin receiving crashes. |
By the way, this exception completely crashes the app on launch every time |
Hello, did anybody solve this successfully? i tried adding the sdk after firebase setup guide and sync gradle has no errors but it still does not work. What is the difference between project level gradle and app level gradle? |
ok, i guess i got it run. But im not sure if this was the right way. At least my Android App did not crash anymore yet when use Version 2.0.1 of the plugin. i added the SDK manually to project build.gradle:
}` as described in firebase setup guide on my first try i did not add apply plugin: 'io.fabric' at the end of gradle file. After i did and rebuild App starts fine. Maybe this helps someone. |
It looks like we are adding the necessary code to build.gradle in the after plugin add hook: https://github.com/arnesson/cordova-plugin-firebase/blob/master/scripts/after_plugin_add.js I'm not entirely sure why we do it then instead of just adding it directly to the build.gradle file. Perhaps this is to allow the ability to disable crashlytics at some point in the future if we needed via a cordova variable. @briantq I know you worked on Crashlytics for iOS but not for Android, but would you happen to know any specific reason we add the build steps after plugin add instead of just adding it directly to the build files? |
@ColDrekken @herrskytte This should be resolved with PR #852 To test it, please run:
@soumak77 I am not sure why, but that after_plugin_add hook was never getting run. I specifically looked for the snippet in the build.gradle but it wasn't there. Additionally, I think it was adding it to the wrong build.gradle file, as it needed to go to the one in the project root. Hopefully the latest PR should resolve it. |
@briantq I do not have access to github in my coding environment, so hopefully somebody else can test this! Thank you for quick reply and solution. At least the solution by @ColDrekken will work until this is merged into release |
@herrskytte You can download a zip of the branch and install it locally to test. Since you are posting, you should be able to download a zip on that account, transfer it to your coding environment, and test it via a local install. Here's a post on how to do that. |
@herrskytte This should be in v2.0.2. Check it out and let me know if it resolves the issue. You might need to delete the plugins and platform directories to get it to install correctly. The way you can tell is your should see 4 lines in the build.gradle at the root of the project, that have a comment with cordova-plugin-firebase in the. If you see that, it should resolve your issue. If it doesn't work, let me know and we can see what we can do. |
hello @briantq , i tried version 2.0.2 with the suggested way but theres another issue now: i did: platform rm android plattform add android when i build android i end up with:
in build.gradle line 25 in my case. best regards |
@ColDrekken I think it has something to do with your configuration somewhere. I say that because that line of copied directly from the set up guide for installing Firebase on Android. You might Google to see if others encountered the same issue outside of Cordova. Sorry I can't be of more help. |
E . |
Describe the bug
Sorry for the poor formatting. I get the exception below when running my app for Android. Everything is working well for iOS. Using version 2.0.1 of the plugin. I have checked that google-services.json is being copied into platforms/android. Any tips or any additional info somebody need to help me, please ask! Thank you.
The text was updated successfully, but these errors were encountered: