Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安卓11图片显示问题,无法正常显示相册中的图片 #212

Open
jhZhangCoder opened this issue Feb 1, 2023 · 2 comments
Open

Comments

@jhZhangCoder
Copy link

如图
image
请问有没有大佬遇到过,

@jhZhangCoder
Copy link
Author

可以正常访问文件夹,但是无法显示图片

@jhZhangCoder
Copy link
Author

jhZhangCoder commented Feb 2, 2023

问题解决了,问题是由于没有申请权限,后续:由于easypermissions包中引入的版本支持库失效,如下图
image
需要将项目迁移到AndroidX,依据官方文档[https://developer.android.com/jetpack/androidx](Migrate to AndroidX)的说明,只需在gradle.properties 中设置android.useAndroidX=true
Android 插件使用适当的 AndroidX 库而不是支持库。
android.enableJetifier=true
Android 插件通过重写二进制文件自动迁移现有的第三方库以使用 AndroidX即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant