No signature of method: com.crashlytics.tools.gradle.CrashlyticsPlugin On Mac

14.7k Views Asked by At

Below error while gradle sync Failed in Mac.

CONFIGURE FAILED in 3s
ERROR: No signature of method: com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask() is applicable for argument types: (java.lang.String) values: [Debug]

Project works fine in Windows

3

There are 3 best solutions below

1
TAKUYA KONDO On

There seems to be a problem with the version "1.28.0" of "io.fabric.tools:gradle".

I corresponded as follows

classpath 'io.fabric.tools:gradle:1.+'

Change to the following code

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

I hope the fabric team will respond

4
Rajesh Wolf On

Its problem with fabric tools that added in build.gradle app level

To solve this issue

go to build.gradle app level and find the below code

change this

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

to this

dependencies {
    classpath 'io.fabric.tools:gradle:1.27.1'
}

try with other versions like 1.28 if above version not working. avoid using + in version codes and also that stops the auto update.

0
Ankit On

In my case, the Gradle Build Task was failing with the latest version(1.28.0) of Fabric Gradle Plugin. Downgrading to version 1.27.1 resolved this issue. There has been a Fabric Gradle Plugin release recently on 15th March 2019.

For users facing this issue and have added the Fabric Gradle Plugin as

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

}

need to replace with

dependencies {
        classpath 'io.fabric.tools:gradle:1.27.1'
        ...

}