How to find required Android Marshmallow runtime permissions in code?

后端 未结 2 1307

I\'m preparing my app to target Android 6.0 Marshmallow.

When setting the target api to 23, the app immediately crashes upon launch. There is no useful information

相关标签:
2条回答
  • 2020-12-18 05:40

    What worked for me is this : Analyze -> Run Inspection by Name -> Missing Permissions

    0 讨论(0)
  • 2020-12-18 06:02

    Delete all AndroidManifest.xml permission.
    Analyze -> Run Inspection by Name ->Constant and Resource Type Mismatches in Android Studio.
    You can detect permission.

    But this detection is not perfect...
    Because this detects only method that contains this xmls files.
    https://android.googlesource.com/platform/tools/adt/idea/+/master/android/annotations/android
    https://android.googlesource.com/platform/tools/adt/idea/+/master/android/annotations/android/accounts/annotations.xml#118

    0 讨论(0)
提交回复
热议问题