android Glide 4.0 이미지 로드 실패

       ,       ,                    ,      :
class com.bumptech.glide.load.engine.GlideException: Failed to load resource

  :DragPhotoView             ,      ,    ,
    :       
//       
RequestOptions options = new RequestOptions().override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL);
Glide.with(getBaseContext())
        .load(url)
        .apply(options)
        .listener(new RequestListener() {
            @Override
            public boolean onLoadFailed(@Nullable GlideException e, Object model, Target target, boolean isFirstResource) {
                LogUtils.e("" + e.getMessage());
                LogUtils.e("model》》》" + model);
                return false;
            }

            @Override
            public boolean onResourceReady(Drawable resource, Object model, Target target, DataSource dataSource, boolean isFirstResource) {
                return false;
            }
        }).into(dragPhotoView);

좋은 웹페이지 즐겨찾기