tags:

views:

300

answers:

4

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?

+6  A: 

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.

yuku
Thank you yuku. That worked perfectly.
Skittle
My problem was the second step. Why are the install errors so subtle :( -Thanks for your help.
mobibob
+1  A: 

If your target list appears blank, play with the Eclipse font size. I had to drop my dialog font size down to 5pt/courier new to actually see any choices there.

See http://blog.rowancrane.com/2009/12/27/eclipse-new-android-project-cant-select-build-type-target for more information about this

Richard
A: 

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.

masato-san
A: 

Thanks so much masato-san. The slash at the end of the directory did the trick for me.

mjhm