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
CodePudding user response:
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.
CodePudding user response:
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