According to the beginner guide, to setup the ADT Plugin, one of the procedures is
http://developer.android.com/sdk/eclipse-adt.html#installing
For the SDK Location in the main
panel, click Browse... and locate your
downloaded SDK directory.
I went to Program Files, found Android directory, but none of those works.
Upon research, I found out that Android developers have warned me to take note of the SDK directory, which I didn't.
Now my question is, how do I get that directory path? I don't want to reinstall the SDK, and then install the updates (lots of mess...)
Thanks for the help!
Edited
That exe that you guys wanted me to look for is indeed inside platform-tools.
I installed Android SDK, and it gives me Android SDK Manager. So I am guessing I had the right thing installed on my PC.
The path to the SDK is:
C:\Users\USERNAME\AppData\Local\Android\sdk
This can be used in Eclipse after you replace USERNAME with your Windows user name.
You can search your hard drive for one of the programs that's installed with the SDK. For instance, if you search for aapt.exe or adb.exe, they will be in the platform-tools directory underneath the installation directory (which is what you're after).
Search (Ctrl+F) your harddrive(s) for: SDK Manager.exe or adb.exe
The Android SDK directory is just the folder you get after uncompressing one of these files:
http://developer.android.com/sdk/index.html
There's no such "SDK installation"... may be, what you installed was the ADT plugin (which does not include the SDK). You have to download one of the ZIP files you find in the link above, uncompress it and boila! you have the SDK Folder.
Late to the conversion...
For me, I found this at:
C:\Program Files (x86)\Android\android-sdk
This is the default location for Windows 64-bit.
Also, try to recall some of your default locations when not presented with some suggestions.
a simple windows search for android-sdk should help you find it, assuming you named it that. You also might just wanna try sdk
May be i am too much late here and question is already answered, but this may help those who still cannot find sdk location. Open eclipse, click window tab it will show a drop down menu, click preferences, in preferences window click Android, here u go Sdk location is right in front of u copy the address :)
I found it in this location:
C:\Users\amitsinha02\AppData\Local\Android\sdk\platform-tools
ADT Plugin (UNSUPPORTED)
The Eclipse ADT plugin is no longer supported, as per this announcement in June 2015.
The Eclipse ADT plugin has many known bugs and potential security bugs that will not be fixed.
You should immediately switch to use Android Studio, the official IDE for Android.
For help transitioning your projects, read Migrate to Android Studio.
Related
so I've downloaded the Android Studio IDE from the official website, installed, and run it. When I try to create a new project this is what I get:
Obviously I click on (open SDK manager):
I then click on (Edit):
At first, the directory /Android/SDK was totally missing, so I added it manually by creating the two folders Android and SDK in the directory C:\Users\Sam\AppData\Local\ . Which led to the line "target folder is neither empty nor does it point to an existing SDK installation". The SDK manager was never Installed, I couldn't find it in the directory mentioned. Therefore, I downloaded the SDK tools and put it in the directory specified, but that didn't work. An SO thread has suggested that I don't have enough storage space for the SDK, but I have almost 31GB of empty space on my C:\ drive, another one has suggested that I have a proxy/ http problem but I don't think that this is the problem here since I've downloaded the IDE with no problems.
After I hit next this is what I get:
Now how could the SDK could be is up to date while there isn't any SDK to be seen?
I'd appreciate some help, have a nice day
this error may arise when your sdk folder not a 'platforms' folder and you must make an empty folder and rename it to 'platforms'. platforms folder must be in the sdk folder.
I downloaded SDK installers alone and solved the problem. One site to get the installers is: SDK Installer
So, I've been trying to build a project in LibGDX for about 10 hours now. In case you'r unfamiliar, LibGDX is one of those platforms where you specify a project directory at the start, along with any required SDKs and then when you're ready to start coding it will generate a project for you.
Anyway, I've been having a problem where every time I try to build it fails with the single error message:
Execution failed for task :core:compileJava.
Could not find tools.jar
I'm guessing "tools.jar" is a package within the Android SDK, as this is the only repository needed to build, it doesn't ask for a JRE or even the Java SDK. just the Android SDK.
I have been looking in the SDK manager, I have installed all of the packages labelled "Android-SDK Tools", "Android-SDK Platform Tools" and "Android SDK Build Tools" but there is nothing else that includes "tools.jar", I am looking for some light shed on this topic as it is a very grey area. I would like to know where this .jar file comes from and what exactly it includes. Can it be installed from the Android SDK?
There have been similar questions like this before which only fit narrow situations, If someone could provide a holistic description of the tools.jar package it would benefit a great deal for me and everyone else that needs it in their 3rd-party android IDEs.
For the record, it's building with Gradle and my current SDK is well-equipped enough to build full-fledged apps in Android Studio.
Please don't answer this question with a question unless I have left out some information that is dire to finding an adequate solution
Try copying tools.jar from %JAVA_HOME\lib to Android Studio\lib
For me, copying tools.jar to Android lib folder alone didn't solve my problem.
But I also had to create a System Variable 'JAVA_HOME' in Windows Environment Variables with path to the latest JDK folder.
Restarted Android Studio, and this solved by problem.
My Android Studio Version: 4.2.1
The "tools.jar" is provided by Oracle JDK which is required by android studio for compilation - I have faced this issue after updating android studio to latest version in my PC.
To Resolve the issue follow below steps:
In Android studio File -> Project Structure -> SDKs (Under Platform Settings)
A) Add JDK path by pressing '+' symbol in middle pane if suppose JDK/JDK home path is not present in the middle pane already (Middle pane also contains the Downloaded Android SDK's)
B) Java sdk will be usually present/installed in the path
64 bit => "C:\Program Files\Java\jdk1.X.Y_ABC" (In my PC it is 1.8.0_202) or
32 bit => "C:\Program Files (x86)\Java\jdk1.X.Y_ABC"
If suppose you don't have JDK installed in your PC, please download and install from Oracle Java website
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Set JDK and JRE Path(Download both from webpage mentioned in step 2) in system environment variable
A) Press windows key type "Edit the system environment variables" and open the application
B) Go to Advanced -> Environment Variables
Under system variables add JAVA_HOME and JRE_HOME as below
Set Windows system environment variable
Add jdk lib path on the Path environment variable under user variables (this step is required only if the error not resolves with the previous steps)
C:\Program Files\Java\jdk1.X.Y_ABC\lib
In my case, I have five jdk and some have tools.jar and other not, my solution is copy paste this tools.jar in all lib of jdk.
Nothing worked for me. So I Copied tools.jar and pasted it in C:\Users\UMAR_\AppData\Local\Android\Sdk\platforms\android-30 which is the path to the library for the Android API 30 Platform. I pasted tools.jar in every folder and it start working.
I didn't have tools.jar initially but followed this link and downloaded https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Also added to a environment variable.. but what worked was in the first para, I still don't know if adding to variable was necessary or not.
When I try to open up the SDK Manager in eclipse it says opening shortly, but never opens. I've tried to open the exe file but it displays an error message saying:
Failed to execute tools\android:bat the system cannot find the file specified
My path environment variable leads it to the tools folder.
This is the path:
C:\Users\Shan\Documents\Computer Science - YEAR 2\Android App Development\adt-bundle-windows-x86-20130917\sdk\tools
In my case the Tools directory just disappear.
..\sdk\tools
To solve it:
1) Just go to SDK zip -> adt-bundle-windows-x86_64-20131030.zip
2) Unzip the Tools Directory only.
3) copy it under ../sdk/
I had a similar problem today. Press the Windows button and Search for android.bat(in the search programs and files text field)
Then copy the file to your android SDK folder (C:\Users\Shan\Documents\Computer Science - YEAR 2\Android App Development\adt-bundle-windows-x86-20130917\sdk\tools\).
After that don't run SDK manager but run the android.bat file.
Hope this helps
-Zaniar
I had to move the AVD manager from /sdk/tools/lib to the root folder /sdk
Copy the AVD Manager.exe and SDK Manager.exe from
SDK_ROOT_FOLDER/tools/lib/
into
SDK_ROOT_FOLDER
I've been working with this problem for three days and finally was able to run SDK Manager by
==> Running the android.bat file as administrator
Note: I did not have to make any changes to the .bat file (such as setting the java_exe path) in order for the manager to run.
I saw this as a comment on the top answer but can't upvote yet, so confirming it here!
I cancelled an update to Android Tools and it seems there's a bug with unzipping the old (or new?) version back into {android_sdk}/tools. The zip is located in {android_sdk}/temp. Just unzip it into the right location and it should work again.
If the accepted answer doesn't help anyone, it also might be a permission issue (if the SDK is installed in Program Files (x86), for example, so try running android.bat as Administrator,
I had the same issue when updating the Android SDK Tools and SDK Platform-tools from the SDK Manager. I had to replace the tools folder with one located in a zip folder inside the temp folder.
In My case, While I installed visual studio 2015, The SDK files were missed and I am getting an error window shown below.
So I manually downloaded the tools from the following URL.
tools_r24.0.2-windows
Then extract the zip file and copy the tools folder in the following location.
C:\Program Files (x86)\Android\android-sdk
It worked for me.
I think current Android SDK only works with JDK x86 version. I search so much but when installed JDK x86 version Android SDK manager worked without problem.
Copy your android.bat file to C:\adt-bundle-windows-x86_64-20140702\sdk\tools folder or copy all files to C:\.
If you are seeing this error, it may be an issue with your COMSPEC environment variable.
Please see https://stackoverflow.com/a/27284746/3866013 for more details.
I had the same problem. Caused it myself because while runing Android SDK Manager i hit UNINSTALL SDK Tools.
I fixed the issue by running the installation of the Android SDK again. The installation folder had to be the same as previously. After the installation, everything was back again as it was.
This is how I solved the problem on Windows 7:
I was going to update the SDK using Android SDK Manager but android.bat was not found because previously it uninstall the older one and then installs new. In my case my SDK Update was interrupted i.e. in other words, could not install after the SDK Manager uninstalled the tools, so my machine was not able to find android.bat. What I did was just downloaded the standalone SDK tools to the same folder where my SDK were from :
http://developer.android.com/sdk/index.html#Other
https://developer.android.com/sdk/index.html#Other
Here are two options for downloading the Android SDK for Windows users. One in recommended option and the other is .zip file. Zip file worked well.
Another option may also work. Try searching android.bat with windows search engine. If you find the one, copy it and paste in SDK tools folder.
open Sdk Manager.exe, then i deleted first Android Sdk tools, so, I also appeared such a mistake, then I downloaded installer_r24.3.2-windows.exe, installing, copy C:\Users\Super Man\AppData\Local\Android\android-sdk\tools folder to my Sdk path,run My Sdk Path\android.bat ,ok!!
I did the following :
I created a folder SDK right below my C-drive
I unzipped tools_r25.2.3-windows.zip to C:\SDK
I moved SDK Manager.exe from C:\SDK\tools\lib to C:\SDK
I first ran SDK Manager.exe in 'normal mode',but this gave me the error, but when I ran SDK Manager.exe as ADMINISTRATOR it didn't return the error.
The reg command exists but for unknown reason my path variable was corrupted during some installation.
So some basic element were missing:
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem
I am an android programmer, i use eclipse. i want to try android studio, thus, i download it and tried to open it.
it says that i have to put the sdk path.
what i have tried
i tried to set it to my the android-sdk which eclipse is working on it. that sdk is up to date and have all the supports, apis ...etc.
also
i found a question here in the stackoverflow about my problem: Android-studio Selected directory is not valid home for Android SDK
The solution was to open the android studio and then press f4 and then go to platform setting and the press the plus green sign then select the sdk then select the path to my android-sdk, i did all of that but android studio keeps telling me that the
The selected directory is not a valid home for Android SDK
any help would be appreciated
I found the solution myself, the answer was to run android studio as an administrator :P
Had the same problem.
I was trying to select
C:\Program Files (x86)\Android\android-sdk\platforms\android-XX
But what I actually had to do was to select android-sdk folder.
C:\Program Files (x86)\Android\android-sdk
Then I was able to choose the API I wanted from a list of APIs that would show up.
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I found another solution make sure that you have write access to that directory. That fixed the issue for me.
Another way this may need to be fixed is by making sure there is at least one SDK
platform installed. Run in the commandline from the android-sdk folder:
.\tools\bin\sdkmanager.bat platforms;android-XX
where XX is the any Android SDK version.
It might occurs, if Android Studio tries to open the previous project with ".idea" directory. Well, solution is to remove that folder and .iml file too.
Works for me.
What helped for me was moving the android sdk to a folder without any special characters (e.g. no "Program Files (x86)").
In intellij idea File -> Invalidate Caches/Restart
I solved it from here
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
1- Just close current error window and let run the android studio
2- open sdk manager as shown in below
3- Clik on Edit sdk location as below
4- Simply press next button if there is correct location for sdk you want to install there
5- let it be downloaded
6- install platform and SDK tools and
7- Enjoy
For me the problem was I copied the previous Android Studio settings from my old computer, and then I imported them. But I didn't copy the old SDK! Probably the SDK path is also configured somewhere in the old settings. Instead of download them, Android Studio kept complaining about my SDK location. Finally, I also just copied the old SDK directory and then the problem was solved.
Problem Statement selected directory is not a valid home for sdk
I have resolved from here
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
1- Just close current error window and let run the android studio 2- open sdk manager as shown in below
3- Clik on Edit sdk location as below
4- Simply press next button if there is correct location for sdk you want to install there
5- let it be downloaded
6- install platform and SDK tools and
7- Enjoy
I've already installed android sdk and the adt plugin on eclipse helios* on windows 7. when i go to preference, however, i got a problem in locating my sdk location. my sdk location was "C:\Program Files\Android\android-sdk\platform-tools". it says "Could not find folder 'tool...roid-sdk\platform-tools\'". I also tried to update android sdk, but it says access denied.
I've been looking into some forums about this, but i only found those that has problems locating the adb.exe on their folders. Any help would be appreciated, because i badly need to develop an android app for my thesis and tech presentation. thank you very much.
*eclipse helios is not really installed, I'm using its program files that i copied. i don't know if installing it or just running the files will affect the android sdk, so..yeah.
I found my SDK location in the following way (I have Windows 7 OS, and I use Eclipse):
In Eclipse: Window -> Preferences -> Android.
There, you can find it in a textbox, near the label "SDK Location".
I hope it will help someone in the future.
Judging from what's configured in my Eclipse (and I can work with Android, launch Emulators and all, so it's configured OK), you should not use the following path :
C:\Program Files\Android\android-sdk\platform-tools
But only this one :
C:\Program Files\Android\android-sdk
Basically, you should indicate the path to the directory that contains the whole SDK, and not to the platform-tools directory.