how to add 'https://jitpack.io library to android studio version bumble bee?
Asked Answered
P

5

18

In last versions of android studio we can simply add the library https://jitpack.io to the gradle file (module project) easily but in the newest update (android-studio-bumble-bee), the structure of this file has been changed and I don't know how to add this library.

Predecessor answered 15/4, 2022 at 2:49 Comment(0)
H
28

For Kotlin DSL inside settings.gradle.kts file you can use setUrl() just like this.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven {
           setUrl("https://jitpack.io")
        }
    }
}
Heroism answered 8/9, 2023 at 18:18 Comment(1)
@A. baladastian, please see if this answer your needs and, if so, check it as accepted to signal users. Thank you.Empty
A
1

You can add it in your settings.gradle the following way:

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' } // add it like this
    }
}
Amass answered 1/2 at 16:27 Comment(0)
S
1

Add jitpack / maven { url "https://jitpack.io" } in settings.gradle.kts

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

and then add dependency build.gradle.kts

implementation("com.github.pedroSG94.RootEncoder:library:2.4.3")
Slavic answered 17/4 at 7:51 Comment(0)
A
0

you can added in the project settings look for settings gradle hope it helpslook the screenshot

Antiphrasis answered 6/10, 2022 at 1:58 Comment(4)
not working in Android Studio Giraffe | 2022.3.1Casanova
@JayeshDankhara are you able to find any solution?Trimetric
This is a terrible way to answer, no text and an unreadable imageNicolette
it was just to show him where lol .I. !! you can literally zoom in and out .... people just want everything chewed....Antiphrasis
T
-1

On Module level build.gradle (not app level)

repositories{
    maven { url = "https://jitpack.io"}
}
...
dependencies {
    ...
    
}
Tridentine answered 24/9, 2022 at 23:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.