Tried every possible way and searched all the internet but it does not solve. this problem occurred suddenly on my multi-module project.
I am using android studio and Kotlin as programming languages. so far I did every solution such as cleaning the project, removing the catch, and also reinstalling the SDK and android studio. but nothing worked.
The problem occurred after I was solving an exception which related to the circular dependencies where I was navigating from one module to another I used implementation ... () for it. but after I found a solution for that removed some of the dependencies and now its showing this message. I added against the required implementation but still nothing worked.
Using Gradle 7.2 Android Studio Bumblebee | 2021.1.1
these are a few exceptions all are similar:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.google.android:flexbox:1.1.1.
I will really appreciate any help in this regard.
In my case I have this dependency in my app-level Gradle file:
implementation 'com.google.android.ads:mediation-test-suite:2.0.0'
and the solution is to either comment this or remove this, the Gradle will sync.