Search Gradle plugins

Using the plugins DSL:

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

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:2.7.0")
  }
}

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

Using the plugins DSL:

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

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:2.7.0"
  }
}

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

Learn how to apply plugins to subprojects