ERROR: No signature of method: com.crashlytics.tools.gradle.CrashlyticsPlugin.findObfuscationTransformTask()

前端 未结 2 1925
轮回少年
轮回少年 2021-01-31 06:54

I am getting the following error while trying to build my project on Android Studio:

ERROR: No signature of method: com.crashlytics.tools.gradle.Crashly

2条回答
  •  被撕碎了的回忆
    2021-01-31 07:40

    hey this error raised because of Many android developers uses

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

    like this so that compiler not find exactly match of the fabric version and error raise and also M. Arabi Hasan Sakib is right

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

    also raise this type of error, solution mentioned by M. Arabi Hasan Sakib is also working. I tried below code and its working for me hope it works for you people also or just replace the line like

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

    (Put this code into the build.gradle in app directory)

      buildscript {
        repositories {
            maven { url 'https://maven.fabric.io/public' }
        }
    
        dependencies {
            classpath 'io.fabric.tools:gradle:1.27.1'
        }
    }
    apply plugin: 'com.android.application'
    apply plugin: 'io.fabric'
    
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven { url "https://jitpack.io" }
        maven {
            url "http://dl.bintray.com/lukaville/maven"
        }
    }
    

提交回复
热议问题