Closed mahdizareeii closed 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' }
}
i added this too but the android studio can't download the dependency
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
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' }
}
}
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
}
}
Execution failed for task ':app:checkCafebazaarDebugAarMetadata'.