java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Android SDK 23 introduced a new way to handle permissions, so as a temporary workaround you can set it to build for SDK below 23. As a permanent solution you have to ask user during runtime for permissions with checkSelfPermission() or requestPermissions()

,
Expert tip

You need the permission android.permission.READ_EXTERNAL_STORAGE. Write <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> on the Android Manifest

Solutions on the web

via GitHub by Jai-GAY
, 7 months ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via GitHub by hemapanjakshram
, 3 months ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via GitHub by kapilojha
, 2 months ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via GitHub by kapilojha
, 2 months ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via GitHub by msudol
, 1 year ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
via Stack Overflow by Pushpender
, 4 months ago
Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56)
at android.os.Binder.execTransact(Binder.java:453)

Users with the same issue

8 times, 1 year ago
38 times, 1 year ago
11 times, 1 year ago
138 times, 4 months ago
Once, 13 hours ago
249 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.