'Could not resolve all files for configuration ':app:debugRuntimeClasspath'. problem

I have next problem with my android studio

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

I allready tried this solutions but not working.

Android studio 3.2.1 ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'

Error "Could not resolve all files for configuration" in Android Studio

problem ocours when i add dependency from thirdpart library to gradle.



Solution 1:[1]

Make sure your settings.gradle file has the maven url maven { url='https://jitpack.io'}

Should look like this :

repositories {
    google()
    mavenCentral()
    jcenter() // Warning: this repository is going to shut down soon
    maven { url='https://jitpack.io'}
}

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 LegendSayantan