简体   繁体   English

滑行库中的版本问题以上传图像Android

[英]Version Issue in glide library to upload an Image Android

I have uploaded an image using glide library it's working fine under version below lollypop but it seems that mobile above that version doesn't upload an image because as soon as I upload an image the default image just vanish and replaced with nothing just blank My default image 我已经使用glide库上传了图片,但在lollypop以下的版本下可以正常工作,但该版本以上的移动设备似乎无法上传图片,因为一旦我上传图片,默认图片就会消失,而没有任何内容,只是空白我的默认图片图片 预设图片 So as after uploading anything from anywhere it just gives blank nothing and in my other mobile whose version is KitKat working absolutely fine 因此,从任何地方上传任何东西之后,它什么都没有提供,在我的其他版本为KitKat的手机中也可以正常工作

This is glide library version I am using : compile 'com.github.bumptech.glide:glide:3.7.0' 这是我正在使用的滑行库版本: compile 'com.github.bumptech.glide:glide:3.7.0'

// Loading profile image
        Glide.with(this).load(urlProfileImg)
                .crossFade()
                .thumbnail(0.5f)
                .bitmapTransform(new CircleTransform(this))
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .into(imgProfile);

This is caused maybe because storage permission need to be handled at runtime. 这可能是由于需要在运行时处理存储权限而引起的。 In my Case I Have to Handle WRITE_EXTERNAL_STORAGE permission. 就我而言,我必须Handle WRITE_EXTERNAL_STORAGE权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM