滑行库中的版本问题以上传图像Android [英] Version Issue in glide library to upload an Image Android
问题描述
我已经使用 glide库 上传了图片,在 lollypop 以下的版本下,它运行正常,但在该版本以上的移动设备似乎无法正常运行之所以要上传图片,是因为一旦我上传图片,默认图片就 消失并替换 ,而没有任何内容 空白 我的默认图片 因此,在上传之后,任何地方的内容都什么都没有,而且在我的其他版本为 KitKat 的手机中也能正常工作
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 So as after uploading anything from anywhere it just gives blank nothing and in my other mobile whose version is KitKat working absolutely fine
这是我正在使用的滑行库版本: compile 'com.github.bumptech.glide:glide:3.7.0'
This is glide library version I am using : 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);
推荐答案
这可能是由于需要在运行时处理存储许可而引起的.
就我而言,我必须具有Handle WRITE_EXTERNAL_STORAGE
权限.
This is caused maybe because storage permission need to be handled at runtime.
In my Case I Have to Handle WRITE_EXTERNAL_STORAGE
permission.
这篇关于滑行库中的版本问题以上传图像Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!