How can I add maven { url "https://jitpack.io" } in settings.gradle.kts??
a red line appears under the url, the error says: Unexpected tokens (use ';' to separate expressions on the same line)
How can I solve this, please?
How can I add maven { url "https://jitpack.io" } in settings.gradle.kts??
a red line appears under the url, the error says: Unexpected tokens (use ';' to separate expressions on the same line)
How can I solve this, please?
As of Android Koala, the format should be like this
dependencyResolutionManagement {
repositories {
maven {
url = uri("https://jitpack.io")
}
}
}
Inside "settings.gradle.kts" file please add like this:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
}
}
© 2022 - 2025 — McMap. All rights reserved.
plugins { id("com.android.application") version "8.1.4" apply false id("com.android.library") version "8.1.4" apply false id("org.jetbrains.kotlin.android") version "1.9.0" apply false }
– Inequity