Add SDK to eclipse and no Target

13,490

Solution 1

Are you using the ADT Plugin for Eclipse? If you are you can easily configure Eclipse for Android Development. Android site says -

Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences). Select Android from the left panel. You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.

For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory. Click Apply, then OK.

For more information you visit their configuration page - http://developer.android.com/sdk/eclipse-adt.html#configuring. Hope this helps

enter image description here

Ok so now did you first try out the option in the Options menu - enter image description here

But if this doesn't work it means there is something wrong that is happening due to conflicts in OS. I would like to know what is your Desktop Environment? Ubuntu? Window? Mac?

I'll assume that your using a Windows environment... The best option the community has noted down is the usage of Force HTTPS resources to be downloaded via HTTP. You could also use a Proxy and get the URLs fetched.

For more information look at this thread.

Solution 2

You need to do all of the following:

  1. Download and install Java and Eclipse

  2. Download and install the Android SDK

  3. Install the Android plug-in for Eclipse (from Help, Install Software)

  4. Configure Eclipse to point to your SDK

  5. Create an Android virtual machine (for emulation)

  6. Create an Android project (for your app)

Q: It sounds like maybe things are going wrong at Step 4, correct?

Q: If so, can you browse to the directory with your SDK (for example, from Eclipse can you browse to "C:\program files (x86)\android\android-sdk")?

Share:
13,490
shihua
Author by

shihua

Updated on June 04, 2022

Comments

  • shihua
    shihua almost 2 years

    I have installed android SDK in my computer successful.but when i configure the environment in eclipse.it show "No target available". Actually,i had loaded API form 1.6 to 4.0.I tried many ways to slove the question.but all is failure.now,i have no idea already.who can help me. i would thanks very much.