You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Establish connection with autoconnect=true connection crashes with reflection exception.
Preconditions
Android 7.1.1
Steps to reproduce actual result
Try to establish connection with autoconnect=true
Actual result
java.lang.IllegalArgumentException: method android.bluetooth.BluetoothGatt.<init> argument 1 has type android.bluetooth.IBluetoothGatt, got context
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at com.polidea.rxandroidble.internal.util.BleConnectionCompat.createBluetoothGatt(BleConnectionCompat.java:108)
at com.polidea.rxandroidble.internal.util.BleConnectionCompat.connectGatt(BleConnectionCompat.java:53)
at com.polidea.rxandroidble.internal.operations.RxBleRadioOperationConnect.lambda$getConnectedBluetoothGatt$40(RxBleRadioOperationConnect.java:77)
at com.polidea.rxandroidble.internal.operations.RxBleRadioOperationConnect$$Lambda$8.call(Unknown Source)
#### Expected result
Connection got established
The text was updated successfully, but these errors were encountered:
…d 7.0.0+. It is no longer needed as the issue for using reflection was fixed.
Summary: #83
Reviewers: michal.zielinski, pawel.urban
Reviewed By: pawel.urban
Differential Revision: https://phabricator.polidea.com/D1893
Summary
Establish connection with
autoconnect=true
connection crashes with reflection exception.Preconditions
Android 7.1.1
Steps to reproduce actual result
autoconnect=true
Actual result
#### Expected result
Connection got established
The text was updated successfully, but these errors were encountered: