Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.gradle.android.cache-fix") version "0.3.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.gradle.android:android-cache-fix-gradle-plugin:0.3.8")
  }
}

apply(plugin = "org.gradle.android.cache-fix")

Using the plugins DSL:

plugins {
  id "org.gradle.android.cache-fix" version "0.3.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.gradle.android:android-cache-fix-gradle-plugin:0.3.8"
  }
}

apply plugin: "org.gradle.android.cache-fix"

Learn how to apply plugins to subprojects