Build Error due to ‘material-dialogs.jar’
Error:A problem occurred configuring project ’:mobile’. > Could not resolve all dependencies for configuration ’:mobile:_PlusDebugCompile’. > Could not find com.afollestad:material-dialogs:0.7.2.7. Searched in the following locations: https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.2.7/material-dialogs-0.7.2.7.pom https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.2.7/material-dialogs-0.7.2.7.jar https://repo1.maven.org/maven2/com/afollestad/material-dialogs/0.7.2.7/material-dialogs-0.7.2.7.pom https://repo1.maven.org/maven2/com/afollestad/material-dialogs/0.7.2.7/material-dialogs-0.7.2.7.jar
This happens because the library has been updated to the Latest Version!.
Solution
OLD ONE:
repositories {
mavenCentral()
}
dependencies {
....
compile 'com.afollestad:material-dialogs:0.5.0'
....
}
Change it like this
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.1.1'
compile project(':materialDesign')
compile('com.github.afollestad.material-dialogs:core:0.8.5.1@aar') {
transitive = true
}
compile 'com.nispok:snackbar:2.7.3'
compile project(':FloatingMenu')
compile('com.rengwuxian.materialedittext:library:1.7.1') {
exclude group: 'com.nineoldandroids'
}
compile 'com.google.android.gms:play-services:6.5.87'
}