To see a list of available targets, enter
the following:
android list targets
I downloaded all of the SDK platforms, so
running this command on my machine lists four options:
jsc-mbp:~ jstark$ android list targets
Available Android targets:
id: 1 or "android-3"
Name: Android 1.5
Type: Platform
API level: 3
Revision: 4
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id: 2 or "android-4"
Name: Android 1.6
Type: Platform
API level: 4
Revision: 3
Skins: HVGA (default), QVGA, WVGA800, WVGA854
id: 3 or "android-7"
Name: Android 2.1-update1
Type: Platform
API level: 7
Revision: 2
Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854
id: 4 or "android-8"
Name: Android 2.2
Type: Platform
API level: 8
Revision: 1
Skins: HVGA (default), QVGA, WQVGA400, WQVGA432, WVGA800, WVGA854
Take note of the ID string listed in the
output for Android 2.1 (i.e., android-7). This SDK is the most widely
deployed platform at the time of this writing.