"sdk platform tools component is missing" - java

I was following the instructions, word-for-word, as on Android's website: http://developer.android.com/sdk/installing/index.html
I already have Eclipse Juno on which I develop Java applications. For my coursework I need Android SDK. I followed the instructions till adding a new software and restarting Eclipse.
Then I got error messages saying:
sdk platform tools component is missing
They were two dialog boxes that went away when I clicked close. Very obvious :P
And in my Eclipse console I have this:
[2013-06-10 16:40:09 - DDMS] DDMS files not found: C:\Users\LittleJavaChild\AppData\Local\Android\android-sdk\platform-tools\adb.exe
[2013-06-10 16:40:09 - DDMS] DDMS files not found: C:\Users\LittlejavaChild\AppData\Local\Android\android-sdk\platform-tools\adb.exe
I have no idea what to do next.
Please help me set up the SDK.
Also, how do I remove the newly installed software if I want to repeat the steps on Android's site again ?

Click the little Android Android SDK button
And make sure the top 3 things are installed

Related

How can I update the available Android APIs in Eclipse (ADT)

I am trying to update my API level choices within eclipse. Currently, the highest I can get to is API 19:
-
I am interested in starting with 5.0 and making that my target API, but I cannot seem to get it as an available option.
I have tried updating eclipse via the help -> check for updates, but have seen nothing new.
Currently, I am using the ADT via eclipse (See picture below)
-
I am sure it is something very simple that I am missing, but can someone tell me where I can find the update to this so that I can start working with things like the glass API, wearables, and Lollipop? Is there a section for updating that I have not seen? Thanks all!
Steps for updating eclipse
1. Download eclipse from the official site
2. Download and install jdk latest version
3. After installing the eclipse , Go to Help > Install New Software.
4. Click Add, in the top-right corner.
5. In the Add Repository dialog that appears, enter "ADT Plugin" for the
Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
6. Click OK.
7. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
8. In the next window, you'll see a list of the tools to be downloaded. Click Next.
9.Read and accept the license agreements, then click Finish.
10. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
11. When the installation completes, restart Eclipse.
After restarting eclipse , goto android sdk manager .
Now you will see all the android versions and tools

Installed Android Studio 0.8.1 but can't get into IDE since no Android SDK

I installed (after unzipping) android-studio-ide-135.1224218-windows, hoping to be up and running a "hello world" program by now, but the IDE won't even start because "Your Android SDK is missing, out of date or missing templates." It tells me "You can configure your SDK via Configure | Project Defaults | Project Structure | SDKs" but when I do so, I see NOTHING in the text box for Android SDK location.
I searched for "android sdk" on my computer, and found C:\Program Files (x86)\Android\android-studio\plugins\android\lib\sdk-common.jar, but when I put that or C:\Program Files (x86)\Android\android-studio\plugins\android\lib into the text box, I get NO ERROR, but then I get the same message, and when I come back to the text box, IT DOESN'T HAVE WHAT I PUT INTO IT.
If I browse for the text box location, no matter what I put in, it says "Please choose a valid SDK directory".
That's the only "android sdk" on my computer.
I JUST installed Android Studio to C:\Program Files (x86)\Android\android-studio with no errors.
I have C:\Program Files\Java\jdk1.7.0_60 as JDK location. It won't let me change it to C:\Program Files (x86)\Java\jdk1.7.0_25.
I've Googled to see if I can download an android sdk from somewhere but found nothing.
WHAT DO I DO? I can't get into the IDE to try stuff.
sdk-common.jar is not the 'sdk' that Android Studio is looking for. You must download the sdk from SDK Manager and put it in the directory C:\Program Files (x86)\Android\android-studio\sdk.
This is what the sdk should contain:
sdk\build-tools
sdk\extras
sdk\platforms
sdk\platform-tools
...
I couldn't make use of the Answers above, so I uninstalled and then brute-force deleted EVERY trace of Android EVERYTHING.
Then I downloaded and installed installer_r23-windows.exe, putting the SDK manager out there BEFORE installing the Android Studio IDE. I allowed the default path: C:\Users\Dov\AppData\Local\Android\android-sdk.
Then I downloaded and installed android-studio-bundle-135.1245622-windows.exe--NOTE: BUNDLE, NOT IDE. I used the default folder: C:\Users\Dov\AppData\Local\Android\android-studio.
And I STILL got the SAME ERROR. But at least THIS time I could go into SDK Manager, as the error message said to do.
What I found was that the CORRECT path to the JDK, which was the same path shown in the SDK Manager dialog for installing packages. So why the error?
LOOOOOOONG story short... as I tried to browse for the path, I noticed that the AppData folder WAS NOT SHOWING.
SOLUTION: TYPE THE PATH BY HAND. It worked.
I CHANGED NOTHING, except my approach.
As it happens, "The [AppData] folder is hidden by default in File Explorer, and has three hidden sub-folders: Local, LocalLow, and Roaming." See here.
I assume that was Android Studio's problem, but why typing it by hand changed all that is anybody's guess.
I guess it's not a great idea to have AppData part of the DEFAULT install path.
(BTW, I did NOT have to mess with ANY environment variables.)
=== EDIT ===
I reinstalled Studio and SDK Manager and the above did not work. What I did BOTH times was to TRY to drag the SDK Manager.EXE file into the browse dialog from an Explorer window; it didn't work either time, but I tried today and THEN found success.... So I guess this seems to be a necessary step.... I also added \ after sdk in the text box for the SDK path.... And I clicked Apply before OK.... I hate when stuff works seemingly randomly.... Just trying to save others the frustration. Maybe Google needs to address this.
I had exactly this problem. After downloading Android Studio from the developer site:
android-studio-ide-135.1538390-windows.zip
But kept getting the error: "Your Android SDK is missing, out of date or missing templates."
Wasted several hours, but eventually went to the "Installing the Stand-alone SDK Tools" page:
https://developer.android.com/sdk/installing/index.html?pkg=tools
And downloaded and installed installer_r23.0.2-windows.exe.
Then I added its location to Configure -> Project Defaults -> Project Structure
I can now create projects.

Android: Eclipse can't build projects

days ago I opened ADT and it suggested to update 2-3 things. I did without even looking what they were, and after it all gen folders are empty. I have about 40 little projects, and they all don't have R and BuildConfig classes. I can't create a new project, "Compile With: " field stays empty. When I open "Android -> Properties -> Android" then everything is empty there, no Project Build Target and n o Library, and no possibility to add.
I cleaned many times, Built manually and automatically, insatlled Build Tools in SDK Manager. no error in any layout file. what else to do? Help please.
There are two parts to the tools necessary to build an Android project, the version numbers of each part need to match. I suspect that from your description, that you have only updated one, namely the Android SDK Tools
To check the version of this component, click on the Android SDK Manager icon in the toolbar and in the popped up window you will probably see "Android ADK Tools rev 22.6.2" near the top.
Now check the other necessary part, (the plugin), version number by selecting Help, Install new software, click 'what is already installed". At the top you will see the 4 plugin Android components. These need to be version 22.6.2 as well. If they are not then add the repository https://dl-ssl.google.com/android/eclipse and update it if necessary.
In Eclipse , Open Android Sdk Manager and install or update required Android SDK Build-Tools .
Then restart Eclipse .
Goto windows -> preferences -> android -> sdk location and browse your updated sdk and ok.
Hope this will solve your issue
Eclipse has Android SDK manager option Top on left side.
go to Android SDK Manager and Install Android API packages.
I had same problem yesterday and this is how I solved it :
1.Check if your SDK Manager Works if it says that tools folder is missing it means you dont have any SDK installed if you have then go to : Window -> Preferences -> Android -> and browse to find SDK in my case it is ...Documents\ADT\adt-bundle-windows-x86_64-20131030\sdk then click Apply to refresh if it found sdk chose it then do same for your project to make sure it has sdk assigned to use and about R In each class u will have to go to import section and delete R import because eclipse changed it to R.android, then just import your R. class. If that doesn't help please list more information and what you tried so far.
Good luck

Update ADT from 21.0 to 21.1

i downloaded APIs 15,16 and 17. After the download is finished, I closed eclipse but when i open it again it gives me a message box saying I need to update my ADT from 21.0.0 into 21.1 or higher, (and my current project suddenly didnt work, and full of red lines). There is a "Check for Updates" button. But after clicking it, it says there was no update found. I asked Google and found out that there is already ADT 21.1 released. I am wondering if I should just download the latest ADT bundle, but also looking for a quicker solution. I said “quicker” because my internet connection is a bit slow. :( It will take me a whole day to finish the download. :( And also after i downloaded the API, my graphical layouts do not show any more. There is a message saying "Eclipse is loading the SDK. Home.xml will refresh automatically once the process is finished." I waited for eternity, but nothing shows up. Im pretty messed up here. My project does not work anymore, although it worked well before i downloaded the APIs. Can anyone help me?. Thanks.
Go to eclipse > help > Check for updates.
It should list the latest update of adt. If it doesn't work, try this :
go to eclipse > help > Install new software
Click on add
add this url : https://dl-ssl.google.com/android/eclipse/
It will list the updates available- which should ideally be adt 21.1.0 (latest)
install the latest adt and everything should be fine.
The same thing happened to me, here's what I did-
Apparently, the SDK updated to version 21.1, but ADT, still at 21.0. 21.1 is currently a preview release (so I'm not sure how we accidentally updated the sdk...), so you have to manually add the update source. There's a nice guide (http://tools.android.com/preview-channel), but here's what you need:
Start Eclipse, then select Help > Install New Software.
Click the "Add" button, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Previews" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse-preview/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
This worked for me, although I would rather have just downgraded the sdk.
Hope I helped!
go to window -> SDK manager and then install Android SDK Tools to 21.1 and then check for updates again.
I used to get error " update cannot be installed " for that run eclipse in Admin permission.
same with your problem !!!
btw, Thanks for the info ! I tried it after read this and wohooow It worked ! thx
go to eclipse > help > Install new software
click on add
add this url : https://dl-ssl.google.com/android/eclipse/

Setting up Android Development Tools in Eclipse

If you download android SDK now, it comes with a custom eclipse with android fully installed on it, so way easier
Solved!, it was solved by downloading Eclipse Indigo, but as indicated online, they tell you to go to ‘File>New>Other…>Android>Android Project‘, but Android Project is not in the list?
So,
I recently wanted to start making a Java android app, and by going to developer.android.com, they told me, install Android SDK tools, so i did that, then in eclipse, i have to got to help, ad new software, and use this : Enter Android Development Tools in the Name field, and https://dl-ssl.google.com/android/eclipse/ in the Location field. , so i did that, and it keeps giving me this error :
(com.android.ide.eclipse.adt.feature.group 20.0.2.v201207191942-407447)
Missing requirement: Android Development Tools 20.0.2.v201207191942-407447 (com.android.ide.eclipse.adt.feature.group 20.0.2.v201207191942-407447) requires 'org.eclipse.core.runtime 3.6.0' but it could not be found
i looked it up on google, but couldnt find anything...
Does anyone now how to fix this?
Greets
I am using Eclipse Helios. Download Eclipse IDE for Java Developers from here & update it latest packages by goto to menu Help -> Check for new updates.
Download & install Android SDK.
To install ADT Plugin:
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
Procedure to work with android in Eclipse juno is :
Step 1: Install jdk-7 version and then Install installer_r16-windows.exe
Step 2: now unzip the android-sdk and paste it into disk c android folder and replace all.
Step 3: now unzip the eclipse-juno.
Step 4: open eclipse ide and go to the help option and click on new software install option.
Step 5: click on archive and give the path to ur ADT-20.0.3 or any version and choose restart eclipse option.
Step 6: now two green button will be displayed on the left most upper side of eclipse.
Step 7: first click on small arrow type button and see all the packages are installed if not choose install package.
Step 8: now click on second big green button named AVD i.e android virtual device.
Step 9: click on new and configure ram and all u want in your AVD.
Step 10: your AVD is on screen now.
(Using the comments to provide an answer)
Try using the latest version of Eclipse (Juno), or at least Eclipse Indigo. The newer version of the Android Framework might have dependencies that the latest versions of Eclipse provide.
If this is incorrect / doesn't work, let us know so we can update the solution.
You didn't install ADT plugins yet or something goes wrong.
Download ADT-20 form HERE
In eclipse goto--> Help --> Install new Software --> Select ADT-20.zip
For step-by-step instruction HOW TO INSTALL ANDROID see this
As per your given error it is sure an version problem.. you might be trying to add ADT whose version is below ADT-20 and your ecllips is asking for ADT-20..so try to provide link which contains ADT version 20. If still problem exists go to : http://developer.android.com/sdk/installing/installing-adt.html there they have also given download for ADT-20.zip file download it and install it manually.
I had the same problem, I installed Eclipse Indigo and it worked perfect... because it's version 3.7.2 so it should be working fine with this.

Categories

Resources