- Eclipse Android SDK Manager — some packages are missing
- 3 Answers 3
- Not the answer you’re looking for? Browse other questions tagged android eclipse or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
- Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later
- 9 Answers 9
- Missing SDK platform Android, API 18
- 21 Answers 21
- Android studio- «SDK tools directory is missing»
- 21 Answers 21
- Adding SDK Packages
- Get the latest SDK tools
- Get the support library for additional APIs
- Get Google Play services for even more APIs
- Install the packages
- Build something!
- Get started
- Build for wearables
- Use Google APIs
Eclipse Android SDK Manager — some packages are missing
I am beginner in Android programming. Can anybody tell me, how can I add more packages to Android SDK Manager? As you can see in the picture below, I have a list which contains API 19, API 17, API 16, API 10, Tools and Extras, but no other APIs. How can I add for example API 12?
Thanks for helping.
3 Answers 3
Try a command line approach . use cmd or terminal to get command window . type ‘android’ st prompt which launch an executable from /sdkroot/tools.
The ui will let you install new API version like 12.
Untick the «Installed» check box at the bottom of the window.
Finally, I have figured out the answer on my own. In Android SDK Manager I have opened the Tools folder and there I have updated the Android SDK Tools, because the last time I did this was approximately a year ago. Now it works perfectly!
Not the answer you’re looking for? Browse other questions tagged android eclipse or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.12.3.40888
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later
Possible duplicate, I just download a Android Studio Zip file like Eclipse, as I opened getting this error.
But problem is how to update it?
9 Answers 9
same problem happened to me, From this
I have faced the same issue, to solve it:
1- delete (or move ) the projects folder ( AndroidStudioProjects ).
2- Run the Android-Studio (a WELCOME screen will started).
3- From Welcome Screen choose, » Configure -> Project Defaults -> Project Structure )
4- Under Platform Settings choose SDKs .
5- Select Android SDK -> right_click delete .
6- Right_click -> New Sdk -> Android SDK -> choose your SDK dir -> then OK .
7- Choose the Build target -> apply -> OK . enjoy
I had same issue in Android Studio 3. (the project was open) so I closed the current project and the IDE automatically prompted to download the latest components. once its done everything was working correctly.
Here’s a better approach where you don’t have to delete/move anything for Android Studio 3.+.
- Open Android Studio and click cancel/ignore for error prompts on missing SDK for each project.
- Close all your open projects. You can do this by File > Close Project .
- After you do step 1 for all projects, the Welcome screen appears.
- The welcome screen will detect you are missing the SDK and give you options to fix the problem, i.e., install the SDKs for you.
Click on Tools > SDK Manager or click SDK Manager after If you are unable to see the location of your Android SDK Location, click on edit and create a folder where you want to keep it and then click Next and Finish
(Top right corner) File > Close Project > After you close the project you will get a screen which says that you don’t have an sdk and will ask you if you want to install it.
I was able to trigger an SDK download like this:
- Close Android Studio
- Open android studio, but be ready
- Once you see «loading project», click cancel. (this will only appear for seconds on a fast machine)
- The SDK download window appeared!
Источник
Missing SDK platform Android, API 18
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
21 Answers 21
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
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.
Источник
Android studio- «SDK tools directory is missing»
When I start Android Studio, it displays a window entitled «Downloading components» which says: «Android SDK was installed to: C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing » I can not fix it and I need help!!
21 Answers 21
«Android SDK was installed to: C: / Users / user / AppData / Local / android / SDK2 SDK tools directory is missing » It means the Android SDK requires a folder «tools», where this SDK was installed. But that «Tools» folder did not get installed. Probably due to low storage.
[SOLUTION] : Uninstall the Android SDK and install it again. This time just make sure that you have ATLEAST 5GB (though 3.2gb would be enough) free space where ever you are going to install this SDK. Once the installation is complete, just check whether «tools» folder is there or not (At the location where you are installing the SDK)
I had this problem on a Mac due to a corporate proxy blocking the installer’s call to the internet. The phase in which the Android Studio installer is supposed to install the SDK did not happen and the install process just went straight to the «SDK tools directory is missing» message. Sadly, there was no message stating that a connection could not be made.
To fix the problem, it was required that I list the path to my corporate PAC file by using Configure -> «Appearance and Behavior» -> System Settings -> HTTP Proxy. I selected «Automatic proxy configuration url:» and entered the correct URL for the PAC file.
The same problem observed on my side while looking for uiautomatorviewer.bat. After installing Android studio 3.6.2 (at Win10) I was looking for Android SDK Tools section at SDK Manager. Currently, this section is Hidden as Obsolete. Fix: uncheck Hide Obsolete Packages, then check the mentioned package and install it — C:\Users..\AppData\Local\Android\Sdk\tools\bin is created.
Just do the following and it will work fine.
- When the error appears instead of clicking on ‘finish’ , click on ‘x’.It will ask to to re initialize. Take the recommended option.
- After it reconfiguration it will take back to the main screen. Just go to
Configure -> Project Defaults -> Project Structure and copy paste or browse (appData folder may be hidden) to location C: / Users / user / AppData / Local / android / SDK. - Finish and try creating project again. Will work like charm !! 😉
If your SDK tools directory is missing, maybe you deleted it by accident and there is a easy way to download it and guide android studio to it.
First go to android developer site (https://developer.android.com/studio/index.html), scroll to the bottom of the page and chose your download according to system you have(but don’t download installer version for windows) you need a zip file which contains SDK.
After you download just put it in my documents (MAC or WINDOWS) and then when you open android studio screen will popup for installing SDK (like the time that you got error), don’t click next, go to browse, find that file and press ok. After that go next and it will work like a charm.
This was an issue for me because I already had the SDK installed under a different directory. In order to tell Android Studio to where the SDK is you need to get to the settings, but the «SDK tools directory is missing» dialog always exits the whole program when you click «Finish». Here’s how I «solved» it:
/.Android* folders (losing all of your settings :/).
Deleting the .Android Studio folders may be unnecessary — I never tried pressing the X on the original error dialog — I only tried «Finish» which exits Android Studio. It is possible if you click the X you can get to settings but unfortunately I can’t go back and check now.
Источник
Adding SDK Packages
By default, the Android SDK does not include everything you need to start developing. The SDK separates tools, platforms, and other components into packages you can download as needed using the Android SDK Manager. So before you can start, there are a few packages you should add to your Android SDK.
To start adding packages, launch the Android SDK Manager in one of the following ways:
- In Eclipse or Android Studio, click SDK Manager
in the toolbar.
- If you’re not using Eclipse or Android Studio:
- Windows: Double-click the SDK Manager.exe file at the root of the Android SDK directory.
- Mac/Linux: Open a terminal and navigate to the tools/ directory in the location where the Android SDK was installed, then execute android sdk .
When you open the SDK Manager for the first time, several packages will be selected by default. Leave these selected, but be sure you have everything you need to get started by following these steps:
Get the latest SDK tools
As a minimum when setting up the Android SDK, you should download the latest tools and Android platform:
- Open the Tools directory and select:
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools (highest version)
- Open the first Android X.X folder (the latest version) and select:
- SDK Platform
- A system image for the emulator, such as
ARM EABI v7a System Image
Get the support library for additional APIs
The support library is required for:
It also provides these popular APIs:
The Android Support Library provides an extended set of APIs that are compatible with most versions of Android.
Open the Extras directory and select:
- Android Support Repository
- Android Support Library
Get Google Play services for even more APIs
The Google Play services APIs provide a variety of features and services for your Android apps, such as:
To develop with Google APIs, you need the Google Play services package:
Open the Extras directory and select:
- Google Repository
- Google Play services
Note: Google Play services APIs are not available on all Android-powered devices, but are available on all devices with Google Play Store. To use these APIs in the Android emulator, you must also install the the Google APIs system image from the latest Android X.X directory in the SDK Manager.
Install the packages
Once you’ve selected all the desired packages, continue to install:
- Click Install X packages.
- In the next window, double-click each package name on the left to accept the license agreement for each.
- Click Install.
The download progress is shown at the bottom of the SDK Manager window. Do not exit the SDK Manager or it will cancel the download.
Build something!
With the above packages now in your Android SDK, you’re ready to build apps for Android. As new tools and other APIs become available, simply launch the SDK Manager to download the new packages for your SDK.
Here are a few options for how you should proceed:
Get started
If you’re new to Android development, learn the basics of Android apps by following the guide to Building Your First App.
Build for wearables
If you’re ready to start building apps for Android wearables, see the guide to Building Apps for Android Wear.
Use Google APIs
To start using Google APIs, such as Maps or Play Game services, see the guide to Setting Up Google Play Services.
Источник