Open NivedithaKabbur opened 7 years ago
By adding this above code also not working
What is the error you are getting?
You need the location permission to scan for devices. If you are on API 23+, make sure you request permission as I mentioned in android/android-BluetoothLeGatt#38 comment 2
As I posted on issue android/android-BluetoothLeGatt#38 I'll try to continue the pending work on PR android/android-BluetoothLeGatt#20, apparently the only problem is a merge conflict on gradle that should be solved with a pull rebase.
You need the location permission to scan for devices. If you are on API 23+, make sure you request permission as I mentioned in googlearchive/android-BluetoothLeGatt#38 comment 2
Why not commit the code
I tried to run the code with SDK version 25 and Build tool version 25.0.3. Have got the error as below.
Have got it resolved by adding the following permissions in the manifest.
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />