I was writing my code and didn’t touch any files of the project.
Then i wanted to start the app again and it shows me this error :
‘
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:8.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/8.2/gradle-8.2.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/8.2/gradle-8.2.pom
Required by:
project : '
I tried many solutions in many websites but it didn’t work.
2
Answers
Could you check your build.gradle file in android folder. At dependencies,
I think you added build tools as
classpath 'com.android.tools.build:gradle:8.2'
, there is no 8.2 version. try it with 7.1.2try this in Main project gradle file
put this line in gradle-wrapper-properties