eclipse - Import android.bluetooth.BluetoothGatt cannot be resolved -
i use eclipse luna , turns out have bunch of import * cannot resolved errors.
import android.bluetooth.bluetoothgatt; import android.bluetooth.bluetoothgattcallback; import android.bluetooth.bluetoothgattcharacteristic; import android.bluetooth.bluetoothgattdescriptor; import android.bluetooth.bluetoothgattservice; import android.bluetooth.bluetoothmanager;
i cleaned project, remove , import have same error.
bluetoothgatt
, other bluetooth gatt profile apis
added in api level 18
.
so in project properties -> android - > project build target , select target greater 18.
or edit project.properties like
target=android-20
Comments
Post a Comment