GlideV4 报错java.lang.AbstractMethodError: abstract method "void com.bumptech.glide.module......

按照往常的使用方法,结果报错:

java.lang.AbstractMethodError: 
abstract method "void com.bumptech.glide.module.RegistersComponents.registerComponents
(android.content.Context, com.bumptech.glide.Glide, com.bumptech.glide.Registry)"

解决:
1、Build ——》cleanProject;
2、要添加一个AppGlideModule类:

import com.bumptech.glide.annotation.GlideModule;
import com.bumptech.glide.module.AppGlideModule;

@GlideModule
public class MyAppGlideModule extends AppGlideModule {
    @Override
    public boolean isManifestParsingEnabled() {
        return false;
    }
}

3、Build ——》makeProject;

你可能感兴趣的:(Android之路)