cafebazaar / Poolakey

Android In-App Billing SDK for Cafe Bazaar App Store
Apache License 2.0
71 stars 22 forks source link

Could not find com.github.cafebazaar.Poolakey:poolakey:2.0.0. #71

Closed mahdizareeii closed 2 years ago

mahdizareeii commented 2 years ago

Execution failed for task ':app:checkCafebazaarDebugAarMetadata'.

Could not resolve all files for configuration ':app:cafebazaarDebugRuntimeClasspath'. Could not find com.github.cafebazaar.Poolakey:poolakey:2.0.0. Searched in the following locations:

shayanpourvatan commented 2 years ago

you need to add jitpack as your maven repository in build.gradle file like the follow lines:

repositories {
        google()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
mahdizareeii commented 2 years ago

i added this too but the android studio can't download the dependency

mahdizareeii commented 2 years ago

create new project and add the dependency : implementation "com.github.cafebazaar.Poolakey:poolakey:2.0.0" and add the jitpack as your maven repository in build.gradle : repositories { google() jcenter() maven { url 'https://jitpack.io' } } your project will be sync without any problem, but the project can not find the classes of the library, and when you want to rebuild your project you will get the error that i said first

mahdizareeii commented 2 years ago
pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter()
        maven { url 'https://jitpack.io' }
    }
}
ariashahdadi commented 1 year ago

we had the same issue, we fixed it as mahdizareeii said you need to add jitpack to your [settings.gradle]()

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
    }
}