FabricPlugin
FabricPlugin copied to clipboard
Fabric plugin fails along with Digits plugin
cordova build android
ANDROID_HOME=/usr/local/Cellar/android-sdk/24.4.1_1 JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home Download https://maven.fabric.io/public/io/fabric/tools/gradle/1.21.6/gradle-1.21.6.pom Download https://maven.fabric.io/public/io/fabric/tools/gradle/1.21.6/gradle-1.21.6.jar
FAILURE: Build failed with an exception.
-
Where: Build file '/Users/.../workspace/.../android/build.gradle' line: 322
-
What went wrong: A problem occurred evaluating root project 'android'.
Failed to apply plugin [id 'io.fabric'] Cannot add extension with name 'crashlytics', as there is an extension already registered with that name.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 40.904 secs
It fails for ANDROID and with digits for iOS it works.
Individually standalone (without Digits plugin) it works fine. Please assist on the same.
I'm not sure what digits plugin you are specifically referring to, but if it is this one then your issue is probably that both of these plugins take a dependency on the Crashlytics library (see here).
I'm not sure why the digits plugin has a reference to Crashlytics. That reference would need to be removed from the digits plugin for it to work with this plugin.
This also happened to me and because of hurries I had to drop the digits auth. @Justin-Credible Wouldn't make much more sense adding digits to this cordova-fabric-plugin?
@Telemakhos Yes, that would be the ideal solution.
@murliatdure Did you solve this? We are starting to re-explore the digits login option and I was wondering if you managed to fix this android issue...
Thanks
@murliatdure I am also having the same issue.
I am also having the same issue