'Unable to resolve dependency for ':app@release/compileClasspath' GoogleIAP

Trying to run android app getting following error

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.github.congle7997:GoogleIAP:1.0.8. Show Details Affected Modules: app

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.2'
        classpath 'com.google.gms:google-services:4.3.4'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenCentral()
        jcenter()
        maven {  url "https://maven.google.com" }
        maven {
            url "https://jitpack.io"
        }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}


Solution 1:[1]

Because the library was in Private mode at that time, you could not use it, now it has been set to Public again so you can use it normally.

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 Ha Dong