Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I have a problem with fabric and crashlytics when building my Android App

This is the error I am seeing.

Could not find method create() for arguments [crashlyticsStoreDeobsRelease, class com.crashlytics.tools.gradle.tasks.StoreMappingFileTask, com.android.build.gradle.internal.scope.BuildArtifactsHolder$FinalBuildableArtifact@1711854a] on task set of type org.gradle.api.internal.tasks.DefaultTaskContainer.

like image 681
Philip Herbert Avatar asked Sep 25 '18 07:09

Philip Herbert


People also ask

Is Crashlytics deprecated?

Old versions of your app still using the Fabric Crashlytics SDK will not break once it's deprecated, however they will no longer submit crash reports. But it seems like it will just continue to work as per normal after this date until further notice.

What is fabric Crashlytics?

Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. Crashlytics saves you troubleshooting time by intelligently grouping crashes and highlighting the circumstances that lead up to them.

What is the use of fabric in Android?

Its name is Fabric and it provides a set of crash reporting and mobile analytics tools for mobile applications. One of the tools that Fabric offers, is Crashlytics. Crashlytics is a crash reporting service, that can track your Android application crashes and lots of statistical information and analytics.


4 Answers

For me this happened after upgrading to Android Studio 3.2 which come along with Gradle 4.6. So i switched back from

classpath 'io.fabric.tools:gradle:1.26.0' 

to

classpath 'io.fabric.tools:gradle:1.25.4' 

for the moment.

like image 95
Jack Wilson Avatar answered Oct 07 '22 16:10

Jack Wilson


The cause of the issue seems incompatibility Fabric version with latest version of Gradle.The below works for me. Don't upgrade your Gradle version, Stick with your previous version and Sync the project once.

My Android Studio Version is 3.2

project.gradle

dependencies {
        classpath 'com.android.tools.build:gradle:3.1.4'
    }

build.gradle

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.26.0'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}
like image 21
sm_ Avatar answered Oct 07 '22 15:10

sm_


Try replacing the line io.fabric.tools:gradle:1.+ by the latest stable Fabric version which is 1.25.4. at the moment: io.fabric.tools:gradle:1.25.4

like image 36
Olga Liakhovich Avatar answered Oct 07 '22 16:10

Olga Liakhovich


I had problem when I updated my Android studio from 3.1.4 to 3.2.

The way I got the solution. I changed in the Build.gradle (app).

from

dependencies {
    classpath 'io.fabric.tools:gradle:1.+'
}

to

dependencies {
    classpath 'io.fabric.tools:gradle:1.25.4'
}
like image 1
Saidur Rahman Avatar answered Oct 07 '22 15:10

Saidur Rahman