Blankj / Blankj/AndroidUtilCode

Location权限在6.0系统崩溃的问题

Offen
#1,511 2 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Blankj Auf GitHub ansehen
bug
Vorherrschende Sprache
Java
Sterne
33.6k
Forks
10.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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)
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.