Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Build Target cant be selected in eclipse

I followed these tutorials to set up a Hello World Android app. But when I create a new java project I can't select a build target. It just says no targets available in the target selection box. I have confirmed that I am not having the UI issue described here (http://blog.rowancrane.com/2009/12/27/eclipse-new-android-project-cant-select-build-type-target), I actually have a message in the box saying there are no targets instead of an empty box. I also am using 1920x1080 res.

I'm guessing that eclipse is just not aware of my Android Targets? I installed them in the android SDK manager and see them listed under installed packages in the Android SDK manager (1.1, 1.6, ..., 2.2)

http://fyi.oreilly.com/2009/02/setting-up-your-android-develo.html http://developer.android.com/resources/tutorials/hello-world.html

Any suggestions on how I can create the project and get started? Thanks in advance

like image 898
Alex Amato Avatar asked Nov 08 '10 07:11

Alex Amato


3 Answers

In Eclipse, do this:

Window -> Preferences -> (In the field "SDK Location", add your path to your Android folder, e.g. "C:\android-sdk-windows" and then click "Apply" -> OK.

Now you should be able to select a target.

like image 153
Wroclai Avatar answered Nov 06 '22 11:11

Wroclai


For MAC users,

In Eclipse, do this:

Eclipse -> Preferences -> Android -> (In the field "SDK Location", add your path to your Android folder, e.g. "/Users/user/Projects/Android/android-sdk-mac_x86" and then click "Apply" -> OK.

Now you should be able to select a target.

like image 33
Neil Han Avatar answered Nov 06 '22 11:11

Neil Han


Please make sure that at least one version of Android SDK is installed. To check this, go to window > Android SDK Manager.

like image 26
Jithesh Borgia Avatar answered Nov 06 '22 10:11

Jithesh Borgia