1

when setting up the the notepad exercise (http://developer.android.com/resources/tutorials/notepad/notepad-ex1.html) i am having problems getting past step 1 point 4. for build target it says no target available.

could someone offer any help please?

alt text

alt text

Tuffy G
  • 1,521
  • 8
  • 31
  • 42

4 Answers4

2

Might be a silly question, but have you downloaded the SDK and set up Eclipse with ADT? Have you been able to build the HelloWorld program?

Will Tate
  • 33,439
  • 9
  • 77
  • 71
  • downloaded the sdk and eclipse with adt and its all installed – Tuffy G Jan 19 '11 at 19:25
  • In eclipse goto Window->Android SDK and AVD Manager then click on Installed Packages on the left, it should show the SDK targets available. – Will Tate Jan 19 '11 at 19:42
  • Ok, I think you've installed the basic SDK tools, but not any actual SDK targets. YOu need to launch the android sdk tools, default in C:\program files\android\android-sdk-windows\ and select the android versions you want to build against. see: http://developer.android.com/sdk/RELEASENOTES.html – Will Tate Jan 19 '11 at 19:47
  • hi. please see my 2nd image above for the new problems (sorry to be a pain) – Tuffy G Jan 19 '11 at 19:55
  • You may need to right click on the SDK manager and run as administrator? It seems it doesn't have write access to the drive. – Will Tate Jan 19 '11 at 19:57
  • i'm doing it straight from eclipse. when i click on sdk manager from the directory where i installed it it brings up a cmd and then dissapears. i've tried it as run as admin but it does the same – Tuffy G Jan 19 '11 at 19:59
  • 1
    Apparently there are various reasons why it would fail: http://code.google.com/p/android/issues/detail?id=4410. A popular cause is antivirus software - notably Norton and Kaspersky. – McStretch Jan 19 '11 at 20:06
  • this is going to sound daft but in that case how do i turn off my anti virus? i have avg and it doesnt say anywhere to quit/close down – Tuffy G Jan 19 '11 at 20:10
  • google fu to the rescue! hope this works for your version. http://www.ehow.com/how_5052104_disable-avg-antivirus.html – Will Tate Jan 19 '11 at 20:12
  • thanks. the the to stop avg has worked. however i'm still getting the same errors as image 2 when i am trying to install. do you have teamviewer? it would be much appreciated if you could directly access my machine and see if you can find out whats wrong – Tuffy G Jan 19 '11 at 20:16
  • 1
    Did you look at the link I posted in the above comment? There are a few other reasons why it can fail. Look at others' solutions and see if they work for you. – McStretch Jan 19 '11 at 20:17
  • wooo it seems like its working lol. i copied the tools directory, then ran android.bat as admin from the tools copy directory whilst avg was off and its started to isntall. i shall get back to you once its done. – Tuffy G Jan 19 '11 at 20:23
  • ignore my last message. i forgot to restart eclipse. thanks for your help – Tuffy G Jan 19 '11 at 20:42
  • <3 awesome! now make me some sweet apps! – Will Tate Jan 19 '11 at 20:49
  • i'll do what i can to help. they say the best way to learn is to teach! – Will Tate Jan 20 '11 at 15:04
2

You need to set your Android SDK location in Eclipse->Android preferences.

Eclipse->Window->Preferences->Android->SDK Location

Aaron G
  • 21
  • 2
1

You need to download at least one of the "essential SDK components" into your development environment:

http://developer.android.com/sdk/installing.html

Download one of the "SDK Platform Android" 1.* or 2.* from the Android SDK and AVD Manager (located on the toolbar towards the left - has a picture of a little Android guy with a down arrow). Once you have one of the platforms installed you will have a Build Target available in the list. I would just go ahead and download any available SDKs that you see in the under "Available".

McStretch
  • 20,495
  • 2
  • 35
  • 40
0

Non of other answers worked for me. So here a short collection of them my solution at the end.

Checkliste

PiTheNumber
  • 22,828
  • 17
  • 107
  • 180