Android java.lang.NoClassDefFoundError:解析失败:Lcom/bumptech/glide/glide;

Android java.lang.NoClassDefFoundError:解析失败:Lcom/bumptech/glide/glide;,android,android-glide,Android,Android Glide,简单Glide.with(context).load(url).into(image)将项目与同步后不工作 compile 'com.github.bumptech.glide:glide:4.0.0-RC1' compile 'com.android.support:support-v4:25.3.1' annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1' Java中的NoClassDefFoundError在不

简单
Glide.with(context).load(url).into(image)
将项目与同步后不工作

compile 'com.github.bumptech.glide:glide:4.0.0-RC1'
compile 'com.android.support:support-v4:25.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0-RC1'
Java中的NoClassDefFoundError在不使用Java虚拟机时出现 能够在运行时找到在上可用的特定类 编译时

如果使用编译器:4.0.0-RC1,则在
build.gradle
部分中添加
mavenCentral()

defaultConfig {
    applicationId "//"
    minSdkVersion //
    targetSdkVersion //


    repositories {
     mavenCentral()
    }

}
或者只需使用稳定版本

compile 'com.github.bumptech.glide:glide:4.6.1'

有人能告诉我为什么投否决票吗?这是一个有效的问题。我必须同时添加:
mavenCentral()
glide
依赖项。