This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2650: CC2650 Android sensortag-20-android

Part Number: CC2650

Android Studio 2.3 will be set to my 4.4 version of the phone Android:

        File→Project Structure:Compile Sdk Version:API 19: Android 4.4 (KitKat)   (Build Tools Version:25.0.0)

Build CC2650STK SensorTag-20-Android\SensorTag20 sample program  t

        Build→Build APK

The following error occurred:

        Gradle tasks [:BleSensorTag:assembleDebug]

        【WorkDir】\sensortag20\BleSensorTag\src\main\java\com\example\ti\ble\common\BluetoothLeService.java

    !Error:(736, 35) Error: cannot find symbol

     Symbol: method requestConnectionPriority(int)

        Location: type BluetoothGatt Variable mBluetoothGatt

        【WorkDir】\sensortag20\BleSensorTag\src\main\java\com\example\ti\ble\sensortag\FwUpdateActivity_CC26xx.java

    !Error:(469, 180) Error: cannot find symbol

        Symbol: variableCONNECTION_PRIORITY_HIGH

        Location: Class BluetoothGatt

    !Error:(623, 188) Error: cannot find symbol

      Symbol: variable CONNECTION_PRIORITY_HIGH

       Location: Class  BluetoothGatt

        !Execution failed for task ':BleSensorTag:compileDebugJavaWithJavac'.

        > Compilation failed; see the compiler error output for details.

  • Hello Alvin,

    Since we don't provide an Android Studio sample application, it's hard to say why you see these errors, other than they are from higher Android API versions.

    I suggest following up on a dedicated smartphone forum, such as stackoverflow.net, at the location where referenced in the other post.

    Best wishes