[Solution]org.Gradle.API.plugins.UnknownPluginException: Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources

Few users are complaining that after upgrading their Grandle Plugin they are facing an error with the error message: Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources in Android Gradle.

If you are also facing such type of error then this post will definitely be going to beneficial to you, here we are going to discuss all possible solutions, so let’s begin with this guide.

Recently I have Just Upgraded my Gradle Plugin but now I am not able to construct It, it is giving the accompanying mistake:

Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources:

Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources

Plugin Repositories (could not resolve plugin artifact ‘com.android.application:com.android.application.gradle.plugin:7.1.3’) Searched in the following repositories: Gradle Central Plugin Repository Google MavenRepo

So here we going to explain a few possible solutions in detail and try to resolve this error.

How To Fix: org.gradle.api.plugins.UnknownPluginException: Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources Error?

To fixing the error: org.gradle.api.plugins.UnknownPluginException: Plugin [id: ‘com.android.application’, version: ‘7.1.3’, apply: false] was not found in any of the following sources Error. As Error is recommending that variant/version 7.1.3 not saw as in any of the sources so we simply need to change the following plugin version in build.gradle file and Android Gradle Plugin 7.1.3 have been delivered/ released. So First of all open your build.gradle file and afterward find modules and change their variant as given beneath: modules { id ‘com.android.application’ version ‘7.1.2’ apply false id ‘com.android.library’ version ‘7.1.2’ apply false } Now, attempt to remake your project and your blunder should be addressed at this point. Much thanks to You.

Solution:

As Error is proposing that version 7.1.3 is not viewed as in any of the following sources so we simply need to change the following version in build.gradle record and Android Gradle Plugin 7.1.3 have been delivered. So First of all open your build.gradle record and afterward find plugins and change their version as given underneath.

plugins {
    id 'com.android.application' version '7.1.2' apply false
    id 'com.android.library' version '7.1.2' apply false
}

I Hope, try to rebuild your project again and hope your error is get solved now.

Default image
Ayush