cafebazaar / Poolakey

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

Gradle can't find the library #54

Closed mwdch closed 2 years ago

mwdch commented 2 years ago

Hi,I added the dependency and maven in my build.gradle files but the gradle coudn't find the library. I checked my internet connection with another libraries and it was ok.

shayanpourvatan commented 2 years ago

Hi Mohammad. Did you add jitpack in your gradle file as we mention in documentation? If your answer is yes, please add your gradle file here to review it.

mwdch commented 2 years ago

Yes I added it... here is my gradle file

buildscript {
    repositories {
        maven { url 'https://jitpack.io' }
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.3'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31'
        classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
        classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5"
    }
}
apply plugin: "io.spring.dependency-management"

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

and it's the dependency that I use

implementation "com.github.cafebazaar.Poolakey:poolakey:1.2.2"

shayanpourvatan commented 2 years ago

I don't have any issue with getting library, I've checked it today, could you add jitpack in the following block too:

allprojects {
    repositories {

    }
}
mwdch commented 2 years ago

arctic fox has no allproject block in the build.gradle file but I added the jitpack in settings.gradle and it works fine. Thank you, you can close the issue.