12

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

M.Ricciuti
  • 11,070
  • 2
  • 34
  • 54
Umesh Suryawanshi
  • 934
  • 1
  • 7
  • 21
  • Please see my answer with explanation in https://stackoverflow.com/questions/55214993/error-no-signature-of-method-com-crashlytics-tools-gradle-crashlyticsplugin-fi/55215131#55215131 – M. Arabi Hasan Sakib Mar 19 '19 at 05:54

3 Answers3

51

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

Nima
  • 323
  • 4
  • 13
TAKUYA KONDO
  • 519
  • 3
  • 2
31

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.

Rajesh Wolf
  • 1,005
  • 8
  • 12
7

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'
        ...

}
Ankit
  • 71
  • 1
  • 4