Eclipse for Android: No Build Targets

I installed the Android SDK and the Eclipse IDE for Java and Report Developers, but when I tried to create a new project, the Build Target list was empty.

I had already followed the instructions given in this newsgroup post:

  1. Run the Android SDK and AVD Manager from the Start menu or a command prompt (Start | All Programs | Android SDK Tools | SDK Manager, or C:\Program Files (x86)\Android\android-sdk\tools\android.bat). Do not run it from Eclipse’s Window menu: the Settings tab won’t be available!
  2. In Settings, check “Force https:// … sources to be fetched using http:// …”.
  3. In Available Packages, if “Android Repository” is not present, then:
    1. click Add Add-on Site.
    2. enter “‘”.
    3. check “Android Repository” then check the desired APIs and SDKs.
    4. click Install Selected.

Unfortunately, I still had no targets available in Eclipse. It turned out that problem was that I had no path configured in Eclipse for the Android SDK! This should have been obvious, since when I selected Window | Android SDK and AVD Manager, Eclipse complained that no path was set, but since I always lauched the SDK & AVD Manager from a command prompt, I never received the error dialog. The solution was to open Window | Preferences and browse to C:\Program Files (x86)\Android\android-sdk, then press Apply:

About Jeff Fitzsimons

Jeff Fitzsimons is a software engineer in the California Bay Area. Technical specialties include C++, Win32, and multithreading. Personal interests include rock climbing, cycling, motorcycles, and photography.
This entry was posted in Technology, Uncategorized. Bookmark the permalink.

One Response to Eclipse for Android: No Build Targets

Leave a Reply

Your email address will not be published. Required fields are marked *