androidjcenterjitpackmaven-central

Could not HEAD 'https://jitpack.io/com/tapadoo/android/alerter/2.0.4/alerter-2.0.4.pom'. Received status code 401 from server: Unauthorized


I am experiencing issues with resolving dependencies like com.kaopiz:kprogresshud:1.2.0 and com.tapadoo.android:alerter:2.0.4. It seems that JCenter has become a permanent redirect to Maven Central, but these dependencies are not available on Maven Central or JitPack. I also receive '401 Unauthorized' errors for some dependencies. How should I handle these issues, and is there a workaround for JCenter deprecation?"enter image description here


Solution

  • If Jcenter() or mavenCentral() nothing works for you then simply add under repositories in setting.gradle or build.gradle(Project)

        maven { url '(https://repo1.maven.org/maven2/)' }
     maven { url 'https://maven.aliyun.com/repository/google' }
     maven { url 'https://maven.aliyun.com/repository/jcenter' }