LuckSiege / LuckSiege/PictureSelector
Android12读取内存卡权限被拒绝
- Dominant language
- Java
- Stars
- 13.6k
- Forks
- 3.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Current use version?
#### 当前使用的版本是多少?
```
12
```
## Will this problem occur in demo?
#### Demo能否复现这问题?
```
能
```
## Describe the problem or provide an error log?
#### 描述问题或提供错误log?
```
权限:无
compileSdk 33
minSdk 21
targetSdk 33
使用代码的方式是在继承AppCompatActivity中
PictureSelector.create(this)
.openGallery(SelectMimeType.ofImage())
.setImageEngine(CoilEngine())
.forResult(object : OnResultCallbackListener {
override fun onResult(result: ArrayList) {}
override fun onCancel() {}
})
然后跳转到了对应的图片选择页面,又立即跳转到了设置中的权限页面,然后返回就出现 读取内存卡权限被拒绝
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the report in the demo using the shown PictureSelector.create(this) flow and the listed compileSdk, minSdk, and targetSdk values. Start by examining the Android 12 permission transition into the image-selection page and settings; done means the demo can select images without immediately opening settings or reporting that memory-card access was denied.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100