Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An SDK Target must be specified

Tags:

android

I'm really new at this. I'm following the book "Android" by O'Reilly press a little outdated, I'm using Pulsar for Mobile Java Developers. Build id: 20090920-1017 I go to File, New Project, Android, Android Project. I enter "Hello World" for Project Name. Then I get "An SDK Target must be specified." There is a check box but it says "no target specified".

How do I get this resolved and how do I get to the command line?

like image 320
Skittle Avatar asked Nov 30 '22 11:11

Skittle


2 Answers

You need to choose one of the SDKs in the Build Target section.

If there is none listed, cancel the dialog, and go to menu Window -> Preferences -> Android, specify the SDK location (android-sdk-windows directory on Windows), and press Apply.

If you still don't get any Target Name listed, you need to install the SDK first. Cancel the dialog, and go to menu Window -> Android SDK and AVD Manager. Click Available Packages and select e.g. SDK Platform Android 2.0, API 5, revision 1 then click Install Selected.

like image 158
Randy Sugianto 'Yuku' Avatar answered Dec 04 '22 21:12

Randy Sugianto 'Yuku'


I second to Yuku's answer but my case was I didn't have slash at the end of directory..

This is for Eclipse though it should be similar.

Window -> Preference -> Android

Then you see SDK Location:

It should be something like:

/android/android-sdk-linux_86/

To make sue it is correct, click on Apply button and you should see the list of android target names show up in the same dialog box.

like image 36
Meow Avatar answered Dec 04 '22 20:12

Meow