Blankj / Blankj/AndroidUtilCode
Location权限在6.0系统崩溃的问题
- Dominant language
- Java
- Stars
- 33.6k
- Forks
- 10.6k
- PR merge metrics
- No merged PRs in 30d
Description
## Describe the bug
申请LOCATION权限,在6.0系统崩溃,主要是找不到android.permission.ACCESS_BACKGROUND_LOCATION
OPPO R9s Android 6.0.1
## The code of bug
```
java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=1, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {com.seallive.androidapp/com.blankj.utilcode.util.UtilsTransActivity}: java.lang.IllegalArgumentException: Unknown permission: android.permission.ACCESS_BACKGROUND_LOCATION
at android.app.ActivityThread.deliverResults(ActivityThread.java:3961)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4004)
at android.app.ActivityThread.access$1600(ActivityThread.java:170)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.