ybq / Android-SpinKit

Android loading animations
https://ybq.github.io/Android-SpinKit
MIT License
8.6k stars 1.31k forks source link

Unable to add dependency #80

Open mohitgandhi2711gmailcom opened 3 years ago

mohitgandhi2711gmailcom commented 3 years ago

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()

yousrybadr commented 3 years ago

jcenter is at end of life, please change it into mavenCentral or google

harimoradiya commented 2 years ago

mavenCentral or google

mrjosh commented 2 years ago

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'
}
mohitgandhi2711gmailcom commented 2 years ago

The Spin Kit library does not exist in the maven repository You need to use jcenter() for this, But That is deprecated. Suggestion:-

  1. Use Spin Kit with Jcenter(Deprecated) (Not Recommended)
  2. Spin Kit is Open Library(Not Sure, need to check), Then you can add that code directly in your project.
  3. Choose any alternative Library.

On Fri, Aug 6, 2021 at 3:12 AM MrJosh @.***> wrote:

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' }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ybq/Android-SpinKit/issues/80#issuecomment-893827580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCJZ5EIQASZR2GUKGZHGC3T3MAVFANCNFSM45WSRZ5Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

harimoradiya commented 2 years ago

maven { url 'https://jitpack.io' } use this in your build.gradle project file

sebastinto commented 2 years ago

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' }
    }
}
Rahul123456789mondal commented 2 years ago

Thank Your For The help

y1g4 commented 1 year ago

Thanks