I get the following Exception while running on a Android 6 device.
java.lang.SecurityException: Missing android.permission.GET_ACCOUNTS
This lo
Starting with Android M, API 23, you need to request some permission at runtime on top of declaring them in your manifest.
See this link for more info: https://developer.android.com/training/permissions/requesting.html
As a quick workaround, you can set your targetSdkVersion
to 22 in your build.gradle
.
Keep in mind that even with this workaround, if the user goes in setting in disable the permission for your app, your app will crash.
This is the list of permissions impacted by this new change: