使用最新的gradle / android studio march 2018解决滑行库的问题

时间:2018-03-28 13:00:04

标签: android android-studio gradle

我的项目在更新Android Studio和gradle后无法解析glide库。我的项目正在使用gradle version:4.4android studio version: 3.1。以下是我的gradle文件中的存储库列表:

allprojects {
    repositories {
        jcenter()
        google()
        mavenCentral()
        maven {
            url 'https://maven.google.com/'
        }

    }
}

还有其他人遇到同样的问题吗?

1 个答案:

答案 0 :(得分:2)

在你的gradle中尝试这个: -

dependencies {
    implementation 'com.github.bumptech.glide:glide:4.+' 
    annotationProcessor 'com.github.bumptech.glide:compiler:4.+'
}