question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not compatible with Android 6

See original GitHub issue

Getting error when trying to scan for Bluetooth devices. I assume this is due to not requesting permissions at runtime?

10-16 10:57:52.526 9400-9400/? D/BluetoothAdapter: startLeScan(): null 10-16 10:57:52.534 9400-9400/? D/BluetoothAdapter: STATE_ON 10-16 10:57:52.541 9400-9412/? D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5 10-16 10:57:52.543 9400-9412/? W/Binder: Caught a RuntimeException from the binder stub implementation. 10-16 10:57:52.543 9400-9412/? W/Binder: java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results 10-16 10:57:52.543 9400-9412/? W/Binder: at android.os.Parcel.readException(Parcel.java:1599) 10-16 10:57:52.543 9400-9412/? W/Binder: at android.os.Parcel.readException(Parcel.java:1552) 10-16 10:57:52.543 9400-9412/? W/Binder: at android.bluetooth.IBluetoothGatt$Stub$Proxy.startScan(IBluetoothGatt.java:772) 10-16 10:57:52.543 9400-9412/? W/Binder: at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper.onClientRegistered(BluetoothLeScanner.java:324) 10-16 10:57:52.543 9400-9412/? W/Binder: at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:56) 10-16 10:57:52.543 9400-9412/? W/Binder: at android.os.Binder.execTransact(Binder.java:453) 10-16 10:57:54.485 9400-9405/com.example.android.bluetoothlegatt I/art: Ignoring second debugger – accepting and dropping 10-16 10:57:54.545 9400-9480/? D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true 10-16 10:57:54.630 9400-9480/? I/Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 09/02/15, 76f806e, Ibddc658e36 10-16 10:57:54.638 9400-9480/? I/OpenGLRenderer: Initialized EGL, version 1.4`

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:6

github_iconTop GitHub Comments

8reactions
anlifcommented, Jun 3, 2016

I have a fix in my fork https://github.com/anlif/android-BluetoothLeGatt. There’s also a pull request from someone else.

1reaction
MarkOSullivan94commented, Jun 20, 2016

Was wondering why this example wasn’t working for me, thanks for your solution @anlif!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FIX: “Your Device Isn't Compatible with This Version” on Android
Launch the Settings app on your device. · Tap Apps & notifications in Settings. · Select Google Play Store in the apps list....
Read more >
Top 5 Ways to Fix 'Your Device Isn't Compatible with This ...
Top 5 Ways to Fix 'Your Device Isn't Compatible with This Version' on Android · 1. Update Android OS · 2. Corrupt Google...
Read more >
Android 6.0 Compatibility Definition
This document enumerates the requirements that must be met in order for devices to be compatible with Android 6.0. The use of “MUST”,...
Read more >
How to Fix the 'Device isn't Compatible with this Version' on ...
Android app is not supported by your phone – There's also the possibility that this error is genuine and your phone is simply...
Read more >
My app Is Incompatible with android 6 marshmallow device
I see it in my list of apps when I had Lollipop, Now with Marshmallow tells me that my device is not compatible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found