Set API level for Android

edited August 2014 in Android Mode

Hi all,

I'm doing some BLE stuff and have a library that almost works, but doesn't have the right API level ( I believe, anyways ). Here's my output:

-build-setup:
Using latest Build Tools: 20.0.0
     [echo] Resolving Build Target for Hello...
Project Target:   Android 2.3.3
API level:        10
WARNING: Attribute minSdkVersion in AndroidManifest.xml (18) is higher than the project target API level (10)
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/res
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/rsObj
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/rsLibs
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/gen
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/classes
    [mkdir] Created dir: /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for Hello...
Library dependencies:
No Libraries

------------------
API<=15: Adding annotations.jar to the classpath.
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
Merging AndroidManifest files into one.
Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 3 source files to /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/bin/classes
    [javac] /var/folders/kg/66v_t1ps7ms7hn4llkd46n2m9wrvdb/T/android1923967554489486273sketch/src/processing/test/hello/Hello.java:23: cannot access android.bluetooth.BluetoothGattCallback
    [javac] class file for android.bluetooth.BluetoothGattCallback not found
    [javac] Blepdroid ble = new Blepdroid(this);
    [javac]                 ^
    [javac] 1 error

I think this line: "API level: 10" is what's giving me trouble. How do I set this to the level 18 that I need for the BLE toolkit. Any tips on how to do that and where it is?

Tagged:

Answers

Sign In or Register to comment.