title: BluetoothDevice.ConnectGatt() with transport parameter
body: <p>I just started with Android and set up an API 21 project in Android Studio using Bluetooth LE.</p>
  
  <p>Digging into BluetoothDevice shows me two signatures of ConnectGatt() method:</p>
  
  <pre><code>public BluetoothGatt connectGatt(Context context, boolean autoConnect,
                                   BluetoothGattCallback callback)
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public BluetoothGatt connectGatt(Context context, boolean autoConnect,
                                   BluetoothGattCallback callback, int transport)
  </code></pre>
  
  <p>I'd like to use the second one but the build fails:</p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>It seems the compiler settings don't match the source code in Android Studio.</p>
  
  <p>How can I fix this?</p>