android-gradle-plugins icon indicating copy to clipboard operation
android-gradle-plugins copied to clipboard

Plugin with id 'io.freefair.android-checkstyle' not found

Open Miteshmakwana73 opened this issue 2 years ago • 0 comments

After upgrading the gradle and freefair gradle version getting below error

Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'io.freefair.android-checkstyle' not found.

gradle checkstyle Screenshot 2023-11-20 191210

this is my current gradle file


apply plugin: 'com.android.library'
apply plugin: 'io.freefair.android-checkstyle'

buildscript {
    ext.checkstyle_version = '8.1.0'
    repositories {
        google()
        mavenCentral()
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:8.1.3'
        classpath "io.freefair.gradle:android-gradle-plugins:$checkstyle_version"
        
    }
}

checkstyle {
    toolVersion = "$checkstyle_version"
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

previously I was using

ext.checkstyle_version = '4.2.0-m1'

Please suggest me what is wrong.

Any suggestion would be highly appreciated.

Miteshmakwana73 avatar Nov 20 '23 14:11 Miteshmakwana73