Android Studio - Failed to Apply Plugin [Id 'Com.Android.Application']

Android Studio - Failed to apply plugin [id '']

Updated June 24, 2020

You need to update to the latest gradle version to solve this issue.

Please make sure you are on the latest Android Studio

and then update your project level build.gradle by updating this dependency

buildscript {
repositories {
dependencies {
classpath ''

It might show a popup asking your permission to update gradle, please update and it will download the latest distribution automatically and the issue will be resolved.

Or else you can

Get Latest Gradle 5.6.4 from here and Add it manually

If you don't want to download it manually:

Open YourProject > gradle > wrapper > and replace




Rebuild the project or just run gradle sync again.

gradle build error Plugin with id '' not found

You are adding plugins in wrong place.

plugins are added inside build.gradle(app) and classpaths are added inside build.gradle(project).

for example, inside build.gradle(app)

apply plugin: ''
buildscript {
repositories {
dependencies { }

inside build.gradle(Project)

classpath ''

An exception occurred applying plugin request [id: ''] while integration Jetpack Compose

Android Gradle Plugin 7 requires Java 11.

Go to File > Project Structure and change JDK location to Embedded JDK.

Failed to apply plugin [id '']

Well I just solved the issue by replacing

apply plugin: ''

with its deprecated version

apply plugin: 'android-library'

That seems to work for now, but I don't think this is the optimal solution, so I'm open to better ones.

Android Gradle Plugin 7.1.3, Plugin [id: '', version: '7.1.3', apply: false] was not found in any of the following sources

Android Gradle Plugin 7.1.3 has been released. Problem solved.

Project build files are up-to-date for Android Gradle Plugin version 7.1.3.

Failed to apply plugin [id ''] - Minimum supported Gradle version is 4.4

Default gradle pointer wrong. During update, Android Studio ffailed to update the symlink for gradle:


Once I manually updated

ln -s /Users/userx/.gradle/wrapper/dists/gradle-4.4-all/9br9xq1tocpiv8o6njlyu5op1/gradle-4.4/bin/gradle /usr/local/bin/

all builds started working again.

Android Gradle Plugin: Plugin [id: '', version: '7.1.3', apply: false] was not found in any of the following sources

On Windows, Adding Android Studio to the Windows Firewall list fixed the same problem for me. It wasn't added by default, or maybe I clicked something wrong during installation.

  • Start > Windows Firewall
  • In the left panel "Allow an app for feature through Windows Firewall"
  • Change settings
  • If Android Studio is not in the list: "Allow another app" and find the exe from the desktop/start menu shortcut
  • I restarted windows; maybe restarting Android Studio is enough

There are probably many causes/solutions for this error, but this worked for me.

Related Topics

Leave a reply