question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashlytics was applied to a project without an Android plugin

See original GitHub issue

I am working on a cordova app that uses cordova-fabric-plugin.

We are recently having this error when building the app with Gradle, and we are not able to identify the cause:

Failed to apply plugin [id 'io.fabric'] Error:(66, 0) Crashlytics was applied to a project without an Android plugin. Please make sure the Crashlytics plugin is applied after the appropriate Android plugin for your project.

Gradle build is generated from a package.json file which defines the dependencies of the project. Two of these dependencies are:

  • cordova-android: 7.0.0
  • cordova-fabric-plugin: ^1.1.10

This is the generated build.gradle file that causes the error:

build.gradle

Is this a bug in the plugin? Can someone help me here, please?

Thank you. Kind regards.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:4
  • Comments:19

github_iconTop GitHub Comments

4reactions
mnowak-umichcommented, Feb 8, 2018

I got this error:

Failed to fetch plugin https://github.com/chancezeus/FabricPlugin.git via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Failed to get absolute path to installed module (node:34859) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

– Mike Nowak Center for Health Communications Research 📬 North Campus Research Complex 2800 Plymouth Road, Building 16 The University of Michigan 💻 http://chcr.umich.edu/


Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues

3reactions
chancezeuscommented, Feb 7, 2018

For those looking for a quick fix for now, I just created a quick fork with my fixes applied. I tested a quick build with android 7.0.0 and there seem to be no problems. The fix should remain backwards compatible and thus should be pullable as is without any issues. Pull request (#122) has been submitted but for now you can install my version using: [ionic] cordova plugin add https://github.com/chancezeus/FabricPlugin.git --variable FABRIC_API_KEY={YOUR API KEY} --variable FABRIC_API_SECRET={YOUR API SECRET}

Hope it helps those in need 😌

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashlytics was applied to a project without an Android plugin
I am working on an Ionic Cordova app that uses Cordova-fabric-plugin. We have recently been having this ...
Read more >
Get started with Firebase Crashlytics - Google
Step 1: Add the Crashlytics SDK to your app · In Xcode, with your app project open, navigate to File > Add Packages....
Read more >
Setting up a new app in Crashlytics without the IDE plugin
Add the Crashlytics plugin to your build.gradle: · Make sure your app has INTERNET permissions in AndroidManifest.xml : · Add your API key...
Read more >
Android Setup - Crashlytics - React Native Firebase
Adding Firebase Crashlytics Gradle Tools · 1. Add the Google repository (if it's not there already) · 2. Add the Firebase Crashlytics Plugin...
Read more >
New features in Android Studio Preview
Live Edit; SDK insights; App Quality Insights from Firebase Crashlytics ... if your project is using Compose version 1.2 or higher, Live Edit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found