could not find com.affolestad.material-dialogs

2019-09-11 15:15发布

I imported Android Studio project but was stuck at this error.
I even updated my SDK and gradle build
Error:A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.afollestad:material-dialogs:0.7.5.2. Searched in the following locations: https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.pom https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.jar file:/C:/Users/akki/AppData/Local/Android/sdk/extras/android/m2repository/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.pom file:/C:/Users/akki/AppData/Local/Android/sdk/extras/android/m2repository/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.jar file:/C:/Users/akki/AppData/Local/Android/sdk/extras/google/m2repository/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.pom file:/C:/Users/akki/AppData/Local/Android/sdk/extras/google/m2repository/com/afollestad/material-dialogs/0.7.5.2/material-dialogs-0.7.5.2.jar Required by: WallpaperTemplate-master:app:unspecified

1条回答
我想做一个坏孩纸
2楼-- · 2019-09-11 15:49

This library is not on jcenter or maven.

You have to add the jitpack repo as described in the readme.

repositories {
        ...
        maven { url "https://jitpack.io" }
    }
查看更多
登录 后发表回答