Skip to content

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

Description

@Miteshmakwana73

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions