smuyyh / ImageSelector

:foggy: Android 图片选择器。充分自由定制,极大程度简化使用,支持图库多选/图片预览/单选/照片裁剪/拍照/自定义图片加载方式/自定义色调/沉浸式状态栏
http://blog.csdn.net/yyh352091626/article/details/52154583
Apache License 2.0
1.6k stars 254 forks source link

android10系统手机不显示照片 #167

Open chekGuo opened 4 years ago

chekGuo commented 4 years ago

android10系统手机打开选择照片图库不显示照片,选择完且没数据返回。

chengnuovax commented 4 years ago

我也遇到了,打开图片数量有了,但是图片没有显示出来。我返回有图片,并且压缩之后的图片都能显示出来,就是选择的列表没有图片 我怀疑是Android10的权限相关的东西又加了新的Api

smuyyh commented 4 years ago

我这边Android 10 看起来是正常的

chuck-0123 commented 4 years ago

小米安卓10确实无法正常显示列表的图片,但是能正常加载

heapow commented 4 years ago

在清单文件里加上 android:requestLegacyExternalStorage="true" 就可以了。 如下: <application android:name=".App" android:allowBackup="false" android:icon="@mipmap/ic_launcher" android:requestLegacyExternalStorage="true" ... >

woshe13 commented 4 years ago

android:requestLegacyExternalStorage="true" 添加了还是解决不了问题

skyofsky commented 4 years ago

升级为AndroidX包
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
skyofsky commented 4 years ago

如果项目AndroidX升级后,ImageSelector不升级AndroidX就会造成图片不显示,ImageSelector升级AndroidX后解决图片不显示问题

HYCH0221 commented 4 years ago

Android10不是所以手机这样。华为的P30 pro 和P40 pro就是缩略图为空白。 @smuyyh

574996894 commented 1 year ago

有没有可能,是没有初始化?加一段代码

ISNav.getInstance().init { context, path, imageView ->
    Glide.with(context).load(path).into(imageView)
}