방금 Android로 시작하여 Android LE에서 Bluetooth LE를 사용하여 API 21 프로젝트를 설정했습니다. BluetoothDevice에 파고전송 매개 변수가있는 BluetoothDevice.ConnectGatt()
은() 메소드 나에게 ConnectGatt 두 서명을 보여줍니다
public BluetoothGatt connectGatt(Context context, boolean autoConnect,
BluetoothGattCallback callback)
및
public BluetoothGatt connectGatt(Context context, boolean autoConnect,
BluetoothGattCallback callback, int transport)
내가 두 번째를 사용하고 싶지만 빌드가 실패
Error:(127, 26) error: method connectGatt in class BluetoothDevice cannot be applied to given types; required: Context,boolean,BluetoothGattCallback found: Context,boolean,BluetoothGattCallback,int reason: actual and formal argument lists differ in length
컴파일러 설정이 Android Studio의 소스 코드와 일치하지 않는 것 같습니다.
어떻게 해결할 수 있습니까?