Unable to add dependency
mohitgandhi2711gmailcom opened this issue · comments
Hi,
As jcenter() is deprecated, Without jcenter(), I am unable to add dependency in my project, Please shift this to other repositories like google() or mavenCentral()
jcenter is at end of life, please change it into mavenCentral or google
mavenCentral or google
I used jitpack.io and it worked fine
Add this in your root build.gradle at the end of repositories:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.ybq:Android-SpinKit:1.4.0'
}
maven { url 'https://jitpack.io' }
use this in your build.gradle project file
For folks using a recent Gradle version, add the jitpack repo in your settings.gradle
file and the Spin Kit library should resolve and download.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Thank Your For The help
Thanks