Seems like I'm having some problems after updating my android sdk tools and platform-tools using the sdk manager. The problem is that, after updating, I found that the avd or sdk options in the windows dropdown menu in eclipse are gone! And, I can't find any option to create an android project from file->new projects any more.
I tried removing the ADT from eclipse and the software site "https://dl-ssl.google.com/android/eclipse/" from "available software sites" and then reinstalled the ADT from "https://dl-ssl.google.com/android/eclipse/" using help->install new software. The installation was successful, but I still don't have any option for shortcuts to the SDK manager or the AVD in eclipse, and neither can I create a new android project.
By the way, the android perspectives are not gone, they are still here. Also, I can manually open the avd and sdk manager from the directory where I have installed them.
Can anyone please show me a workaround? Any help would be greatly appreciated.
I have solved this as follows:
Window > Customize Perspective... (you will see Android and AVD Manager are disabled)
Command Groups Availability > Android and AVD Manager > check
Tool Bar Visibility > Android and AVD Manager > check
I had similar problem after updating SDK from r20 to r21, but all I missed was the SDK/AVD Manager and running into this post while searching for the answer.
I managed to solve it by going to Window -> Customize Perspective, and under Command Groups Availability tab check the Android SDK and AVD Manager (not sure why it became unchecked because it was there before). I'm using Mac by the way, in case the menu option looks different.
Well I feel silly, but my problem was that I was in the Debug perspective and they do not show up in that perspective. Switched back to the Java perspective and viola.
Window -> Custom Perspective -> Command Groups Availability -> Android SDK and AVD Manager check it
Chances are that you may be running your eclipse using Java 1.5.
Latest Plugin requires that the JRE be 1.6 or higher.
You will have to use Eclipse that runs on JRE 1.6
Edit: I had run into same problems. If it is not JRE problem then you can debug this. Follow below procedure:
Window -> show View -> other -> Plugin Development -> Plugin Registry
In the plugin registry search for com.android.ide.eclipse.adt or any other plugin related to android (depending on your installation there maybe 7-8)
Select , Right Click -> Diagnose. This will show the problem why the plugin was not loaded
Try to reinstall ADT plugin on Eclipse. Check out this:
Installing the Eclipse Plugin
I would suggest you to install the ADT plugin compatable with your Android SDK tools and try to install all the required plugins compatable with your Android SDK
LIKE
Android SDK tools Rev 20.0.3
Android SDK tools Rev 20.0.3
Android SDK Platform-tools Rev 14
Android 2.3.3(API 10) sdk platform rev 2
samples for sdk api 10 rev 1
ADT Plugin 20.0.3
Unfortunately I ended up having to re-install eclipse. but first (In Linux)(not sure of folder in Windows) do:
sudo rm -R /usr/share/eclipse/
Related
I inadvertently accepted android studio's upgrade suggestion to 2.3 (canary), although I had always had it set to check for the developer channel, not canary, somehow that got switched. Now I no longer have a 'Launch Standalone SDK Manager' option in my 'SDK Manager' window.
I liked the standalone manager for various reasons, including that it suggested what needed to be downloaded and upgraded. The regular sdk manager lists a lot of things I expect I don't need like 'CMake', 'LLDB', 'Constraint Layout for Android', 'Solver for ConstraintLayout', 'Google Play APK Expansion Library' ('Google Play APK Expansion Library rev 3' is already installed, so do I need this too?), etc.
Is the standalone sdk manager unavailable for 2.3 canary 2, or is there something more I need to do to get it?
I also have updated to the Canary version 2.3 and I'm amazed that they took it away there.. but you can still start it via the SDK Manager.exe located in your sdk folder
C:\Users\You\AppData\Local\Android\sdk
Present:Today when i was trying to launch, the terminal says, The android command is no longer available.
For manual SDK and AVD management, please use Android Studio.
Past:
I also face the problem after updating to Canary version 2.3 on my mac.. On Mac or Linux, open a terminal and navigate to the tools/ directory in the location where the Android SDK is installed, then execute android sdk
or for only mac user go to folder located in
/Users/your mac account name/Library/Android/sdk/tools
and double click android to Launch Standalone SDK Manager
My Advice: Stop Searching for Launch Standalone SDK Manager and get use to be of android studio SDK manager and just choose the Show Package Details for more detailed description like Launch Standalone SDK Manager.
With the 2.3 Canary update, when using SDK Manager.exe or tools/android.bat, no manager is opened. However tools/android.bat give a pretty good answer to why it is not working:
The "android" command is no longer available.
For manual SDK and AVD management, please use Android Studio.
For command-line tools, use
tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
We can still use command-line tools, but no more standalone SDK manager.
Yes, "Launch Standalone SDK Manager" option in Android Studio V2.3 is not available, But you can still start it via SDK Manager.exe located in your sdk folder.
c:\Users\You_User_Account_Name\AppData\Local\Android\SDK Manager.exe
Enjoy Android Studio with new features.
I just received an official response from AOSP -
Project Member #1 uchid...#google.com
deprecated feature , please check latest stable version Android 2.3
The link is now gone, and it is intentional.
Yes the standalone sdk manager option is missing in Android Studio 2.3. Get yourself used to the sdk manager available in Android Studio settings.
Also if you are installing Android Studio from scratch, you will not be available to find Sdk Manager.exe from C:\Users\You\AppData\Local\Android\sdk or anywhere you install it.
While I am trying to Install API 18 it shows only "Google API 18"(nothing more). Now if I try to install these google APIs from Android SDK Manager it shows a message "this package depends on "Missing SDK platform Android, API 18". and Install button is disabled.
Does anybody here have Any idea how to install API 18(4.3_MR2 sdk) with eclipse
Have you installed SDK platform tool version 18? In your SDK Manager, there will be the latest version of SDK Platform tools that you have to install first then restart eclipse and then try for Android SDK API 18
Do this first:
Eclipse > Window > Android SDK Manager > Packages > Reload
Then retry installing
Another way of fixing it:
0) install other packages WITHOUT selecting API 18,
1) restart the Eclipse ADT,
2) Open SDK manager, then API 18 rev 1 shall appear.
Late to the game, same issue. Neither the SDK Tools not the SDK Platform tools showed up for me. This was a 4-step process:
Eclipse/Help/Check for Updates, installed everything that was found, restarted Eclipse
Eclipse/Window/Android SDK Manager - installed Android Support Repository (thanks, BurDog). Closed SDK Manager.
Eclipse/Window/Android SDK Manager - now the Android SDK Tools (Rev 22) showed up at the top, installed. Closed SDK Manager
Now the Android SDK Platform Tools showed up in the API 18 section - installed. Restart Eclipse (or API 18 will not be available everywhere).
Finally good to go to build a new version.
I had the same situation. For me worked updating ADT Plugin to version 22.0.5, closing Eclipse. Then - Eclipse > Window > Android SDK Manager > Packages > Reload.
Hopefully this will help somebody.
Had the same problem. Message was:
package google apis android api 18 revision 1 depends on missing sdk platform android api 18
I solved it like the following steps:
Eclipse -> Help -> Check for Updates (then click on "ok" when asked - do you want to install it - click on "ok" / "yes" to restart eclipse to finish the installation)
Window -> Android SDK Manager -> Deselect all (then scroll down to Extras and Select only Android Support Respository, when not installed, install it)
Window -> Android SDK Manager -> Install xx packages
worked fine for me.
This is how I fixed mine:
Under "Manifest Cache", click on "Clear Cache"
Go to "Packages" and click on "Reload"
Check Tools --> Android SDK Platform-tools
Install just this package
Restart SDK Manager
Eclipse > Window > Android SDK Manager > Packages > Reload
This worked for me. Thanks! Now I can update to 18. I'm new here and tried to vote up Jaguar's post, but I can't.
Seemed kind of klukey, I had similar issues. I finally got passed the api 18 msg when I updated the sdk tools to 22 which then prompted another error that the tools were degraded on reload. I opened sdk mgr again and had a 22.3 and platform tools to rev19 and some other tool choices available. I did yet another update to them along with the API19 and API 18 and it seems like it is moving along now. I think maybe for API 18+ you must update the SDK tools to 22.3 at this point.
Btw, I also got a file lock during part of the process and closing eclipse in the background and hitting retry fixed.
dang.. next it is saying that the ADT must be version 22.0+..
I updated the ADT to 22.3 by using the eclipse/help/install new software (Trying update simply said it was up to date)... one unsigned content error..
Restarted ADT after update.. seems to be working from what I can tell so far.
I´ve solved with this:
Open Android SDK Manager -> Packages -> Reload
Restart Android SDK Manager
Install the "missing" packages (now visible)
I had this problem on my Mac and Windows development machines. The only solution is to reinstall the latest version of the Android SDK. Google really dropped the ball on this.
I had a similar issue as you (purely from problem description), but my Android SDK Platform-tools WAS already installed (16.0.2). All the other packages didn't recognize it, however. I ended up uninstalling the platform tools, and then reinstalling. Then everything else recognized it.
Found from a different website
The steps to resolve this issue:
Open SDK Manager
Go to Tools -> Options
Under "Manifest Cache", click on "Clear Cache"
Then go to "Packages" and click on "Reload"
I am on MAC, I faced the same question. I couldn't find SDK Platform in API 18. The solution to solve it on mac is install the SDK TOOLS first, then restart the sdk manager and then I found the SDK Platform in API 18.
I was having the same problem, but with API19. I installed the following individually, closing Android SDK Manager after each install (thanks cdoner):
Android SDK Tools 22.3
Android Support Repository 3
And then I was able to install API19 with it no longer throwing the error.
("This package depends on 'Missing SDK Platform Android, API19')
I decided to get back into coding after 15+ years and am completely new to Java and Android having only read the book, Head Start Java. Thank you for the easy to follow steps, especially for someone new.
I could not install new SDK from Eclipse (Help -> Install New Software / Check For Updates), it complained the new version is already installed. However, the new SDK did not show up in the SDK manager.
I solved it by installing the new SDK version through command line: android update sdk --no-ui
Afterwards it was possible to update the google APIs and other tools via the SDK manager.
clearing cache solved problem for me. (Tools >option)
I had this problem with API 19. The key for me to use the Android SDK Manager starting in eclipse. Then, the advice above worked to fix the issue.
Background: Because of other command line stuff I was doing, I was starting the SDK Manager by typing "android" at the prompt. - which is what the error I was getting said to do.
it needs minimum sdk and maximum sdk packages.
you just only installed the maximum sdk ie.,API18
3.it also depends on other sdk packages for minimum
My solution to Missing SDK platform Android, API 26 ( It should work for API 18 as well)
Update SDK Tools
Restart SDK Manager and Eclipse
Install SDK Platform API 26, which is now visible
Install the other API 26 packages
If you're using the deprecated version of sdk manager like version r24.xx, then you need to first update the platform tools from sdk installation menu, before installing anything. You may have to do this several times (as long as the update notification shows up)
When I open up Eclipse it tells me that my SDK tools are out of date. Eclipse says my current version is 17 and I can update it to 20. This is a lie; when I open the SDK Manager, my SDK tool are 20.0.1. But when I open up the SDK Manager VIA Eclipse, the SDK tools change to version 17. I already looked at Eclipse: won't let me use Android SDK, wrongly claims my ADT is out of date but it still wouldn't work. I deleted Eclipse and started fresh by downloading Eclipse and installing the Android repository(ADT) to Eclipse. No luck, still tells me SDK tools are 17. So I decided to play along and clicked "Open the SDK Manager" window in Eclipse. The Manager popped up and clicked "install 1 package" (SDK Tool). Halfway through, it stops and says the android-sdk/tools directory is locked by java.exe and cmd.exe so I opened Windows Task Manager and ended the "java.exe" process. And what do you know? My Android SDK Manager Windows just closed. How the am I was supposed update the SDK Tools if the SDK Manager is going to interfere with itself?
Had similar problem. My answer was update ADT Plugin for Eclipse (Help->Check for Updates). Restart Eclipse.
None of the above worked for me. I had to "delete" SDK Build tools packages and then re-install the packages. After doing that, I could now create a new android project.
For most, a simple update of build tool to required version suffice. As often happens, Android SDK Build-tools with compatible version is not installed.
Turns out, Eclipse was looking for the SDK Tools in the wrong place. Eclipse was looking for the tool in:
C:\Program Files (x86)\Android\android-sdk
The ACTUAL TOOLS was in:
C:\Users\YourName\AppData\Local\Android\android-sdk
The SDK Manager will tell you where the tools are. You can tell Eclipse in the preferences (under the Windows) to look in that directory.
I just installed Eclipse and Android SDK in Mac OS X.
I imported the project to Eclipse and i get the Unknown command 'crunch' error while running the project.
How should I solve this issue.
Please help me
I just update
"Android SDK Platform-Tool" to 8 Rev and "Android Asset Packaging Tool"
from android sdk manager,
and then it works.
Have a try!
After updating to ADT r14, go to Window -> SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept all and install them
Restart Eclipse
Run your apps on new ADT r14, without 'crunch' errors
Worked for me :)
Updating Android SDK Tools to r14 and Android SDK Platform-tools to r8 also solved this problem for me.
I had to check 'Installed' in the SDK Manager in order for the updates to be listed (even though I had the previous versions already installed). Checking only the New/Updates box meant they wouldn't show up in the list.
Go to Window -> Andriod SDK Manager (in Eclipse)
Check on 'repository', uncheck "installed"
Wait for packages to load, then select all support packages, accept
all and install them
Restart Eclipse
I had the same issue.
To fix it :
- Uninstall the current sdk tools (Android SDK Tools and Android SDK Platform-tools) in the Android SDK Manager
- Reinstall them at their last version (r14).
I encountered this kind of problem also, when updating SDK,
The solution was to re-enter the SDK folder path to the Eclipse.
(For some reason, the new SDK was instaslltion was in a diffrent folder from the original one)
For me, what worked was a combination of what Androgeek and tinyau said.
Summing up. I needed to update both my Android SDK Tool and Support Tools and restart eclipse.
I am trying to add the add SDK Platform 1.6 to an existing Install of 2.2, with the help of this thread.
As suggested, I ran Help → Check for Updates which found and installed the following:
+ Android DDMS 8.0.1.v201012062107-82219
+ Android Development Tools 8.0.1.v201012062107-82219
It prompted for restarting Eclipse and when it restarted it gave me the following error message:
"SDK Platform Tools component is missing!
Please use the SDK Manager to install it."
Huh? Why? I still have the SDK Platform Tools on C:\android-sdk-windows that was working perfectly before I did this "upgrade".
What do I need to have both 2.2 and 1.6 supported in my development environment?
OK, here is what I did to fix the problem:
Open Eclipse. Then:
Window > Android SDK and AVD Manager
> Available Packages:
> Android Repository:
+ Android SDK Tools, revision 8
+ Android SDK Platform-tools, revision 1
[Install Selected]
The downloaded sdk software does not contain sdk platform tools.
For this, using cmd go to "C:\Program Files\Android\android-sdk\tools" directory and then type the following command to download those missing tools:
android.bat update sdk --no-ui
Then type y to accept all the licenses in cmd. Downloading will start in cmd itself.
Installing Android SDKs is done via the "Android SDK and AVD Manager"... there's a shortcut on Eclipse's "Window" menu, or you can run the .exe from the root of your existing Android SDK installation.
Yes I think installing the 2.3 SDK will fix your problem... you can install older SDKs at the same time. The important thing is that the structure of the SDK changed in 2.3 with some tools (such as ADB) moving from sdkroot\tools to sdkroot\platform-tools. Quite possibly the very latest ADT plugin isn't massively backwards-compatible re that change.
I don't understand why the files were relocated to /platform-tools from /tools.
It seems ALL development tools I have tried, appcelerator for one, have their setup software look for these files in /tools and fail setup. The "work around" involves a few different bits of trickery wherein you either...1) set up a soft link to tell the operating system "if you look for file "x" here it is really over here. or 2) simpler method ... make a copy of all the /platform-tools default (pre-additional android sdk installations) files and place them into the /tools folder. this circumvents the relocation that the newer sdk have done.
Then of course YOU MUST SET PATH ENVIRONMENT VARIABLES TO POINT TO THE SDK LOCATION (sometimes to the Android-sdk-[operating system name:Android-sdk-windows or Android-sdk-mac_x86 ect. ] and to the /platform-tools and sometimes to /tools.
it is a trial and error pain. But when it finally is working ...it works.
Before update SDK components, check in Android SDK Manager → Tools → Options and set HTTP proxy and port if it is set in local LAN.
The latest version of the Android SDK ships with two different applications: an SDK Manager and an AVD Manager rather than one single app that was valid when this question was originally asked.
My particular problem was unrelated to the other suggestions. I'm on a network at the moment where HTTPS traffic is mostly disallowed. In order to install the Android Platform Tools I needed to turn on the option to "Force https://... sources to be fetched using http://..." and then this allowed me to install the other tools.
Here is another alternative. Download it directly here: http://androidsdkoffline.blogspot.com.ng/p/android-sdk-tools.html.
The present version as of this writing is Android SDK Tools 25.1.7. Unzip it when the download is done and place it in your sdk folder. You can then download other missing files directly from the SDK Manager.
I have been faced with a similar problem with SDK 24.0.2, and ADT 23.0, on windows 7 and Eclipse Luna (4.4.0). The android SDK Manager comes with default Proxy IP of 127.0.0.1 (localhost) and port 8081. So as you try to run the SDK Managers as advised by earlier solutions, it will try to connect through the default proxy settings, which keep on failing(...at least on my system). Therefore, if you do not need proxy settings, simply clear default proxy settings (i.e. remove proxy server IP and Port, leaving the fields empty). Otherwise set them as necessary. To access these settings in eclipse, go Window-> Android SDK Manager->Tools->Options.
Hope this helps someone.
step 1:
click on the blue icon on taskbar. It is "SDK MANAGER". Then next click on the Appearance & Behaviour -> System Settings -> Android Sdk
step2:
select on "Android SDK location" and choose edit option.It will prompt you update/install the components. Then start the download or update and this may take a while , all you have to do is wait patiently. "In case you have previously installed the sdk it will show that the sdk android sdk is installed"
step3:
once this is done the program will compile fine ,and no error will exist whatsoever.
Thanks Udit Sood
android.bat update sdk --no-ui not worked on windows 10 powershell but
.\android.bat update sdk --no-ui worked