'After upgrading android studio to Android Studio Chipmunk | 2021.2.1 getting this gradle issue
Plugin [id: 'com.android.library', version: '7.2.0', apply: false] was not found in any of the following sources:
- Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
- Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.library', version: '7.2.0', apply: false] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.android.library:com.android.library.gradle.plugin:7.2.0') Searched in the following repositories: Gradle Central Plugin Repository Google MavenRepo at
org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:221)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
If someone has resolved this, please let me know, Thanks in advance
Solution 1:[1]
I guess AGP7.2.0 hasn't been uploaded to Maven yet? Maven page of Android Application Gradle Plugin
I solved this problem temporarily by setting the Android Gralde plugin version to 7.2.0-rc02 in the Android Studio/Project Structure/Project.
Solution 2:[2]
Android Gradle plugin version 7.2.0 has been uploaded to Maven. Now we can use id 'com.android.library' version '7.2.0' apply false
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | HJx |
| Solution 2 | Debayan Chowdhury |
