I am trying to use this library in my Android Studio project: https://github.com/yarolegovich/LovelyDialog
I added implementation 'com.yarolegovich:lovely-dialog:1.1.1' in my build.gradle but I'm still not able to use it, why?
I am trying to use this library in my Android Studio project: https://github.com/yarolegovich/LovelyDialog
I added implementation 'com.yarolegovich:lovely-dialog:1.1.1' in my build.gradle but I'm still not able to use it, why?
This library is available only to jJcenter so you need to add this code to the root build.gradle file
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
or jcenter() if you are using old Gradle version like this code from the library repository
Also make sure gradle offline mode is disable before sync
Make sure you have jcentre in in settings.gradle
pluginManagement {
repositories {
jcentre() // here
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
jcentre() // here
google()
mavenCentral()
}
}