I'm having trouble importing this library: https://github.com/javiersantos/MaterialStyledDialogs
I added the repository to my project build.gradle:
repositories {
jcenter()
maven {
url "https://jitpack.io"
}
}
And added the library to your module build.gradle:
dependencies {
implementation 'com.github.javiersantos:MaterialStyledDialogs:3.0.1'
}
But I get this error, why? i think the issue is because of jcenter, mavencentral or jitpack or such
Add those two lines to your settings.gradle file then sync gradle
pluginManagement {
repositories {
jcenter() // here
maven {url "https://jitpack.io"} // here
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
jcenter() // here
maven {url "https://jitpack.io"} // here
google()
mavenCentral()
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.