Android Studio maven { url "https://jitpack.io" } can't download Android Studio maven { url "https://jitpack.io" } can't download android android

Android Studio maven { url "https://jitpack.io" } can't download


Omg, finally got it!

So I had to use it like it's mentioned on jitpack official site:

maven { url 'https://www.jitpack.io' }

but I just copy/paste it from jitpack github:

maven { url 'https://jitpack.io' }


Its because jitpack is the only repository you've added. You need to also add Google's repo like this:

allprojects {    repositories {        google()        maven { url "https://jitpack.io" }    }}

Also on a side note, just a few tips:

  • Specify what version of a library you are using. (So don't write :27.+)
  • Put your allprojects function in your project level gradle. (project/build.gradle)


Spent few minutes searching and realized that when you are using the Kotlin DSL for build.gradle.kts the repository information should be in Kotlin format:

repositories {  maven { url = uri("https://www.jitpack.io" ) }}