I was on flamingo then i faced this error then i updated android studio to headgehog but still facing same error. I have tried almost every solution on internet but nothing worked for me.
whenever i create new project I'm getting this error.
configuration i have:
- latest java jdk
- gradle 8.1
- AGP version 8.2.0
getting this popup again and again
error i got while sync:
Build file 'C:\Users\Mohit Dhote\AndroidStudioProjects\MyApplication2\build.gradle.kts' line: 5
Plugin [id: 'com.android.application', version: '8.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.
> Get more help at https://help.gradle.org.
* Exception is:
org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '8.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.application:com.android.application.gradle.plugin:8.2.0')
Searched in the following repositories:
Google
MavenRepo
here is more info:
I have tried changing gradle version, updated to latest jdk version, tried almost everything available on internet


Make sure you have the line
gradlePluginPortal()in yourpluginManagement.repositoriesblock insettings.gradle: