Trouble installing Android 4.2 APIs

Android

Android Problem Overview


I updated ADT through Eclipse today to version 21. Now when I open the SDK Manager I would expect there to be a folder like "Android 4.2 (API 17)", which would contain the SDK Platform and APIs, documentation, etc. However, instead I just get a folder called "API 17", and the only thing in it is "Google APIs", which I can't even install because

> Installing this package also requires installing: > - Missing SDK Platform Android, API 17

What do I do here? Thanks

Android Solutions


Solution 1 - Android

I figured this out myself after some poking around. I went into the settings for the SDK Manager, cleared the cache, and told it to use HTTPS, then refreshed the listing and it all appeared normally.

Solution 2 - Android

Eclipse > Window > Android SDK Manager > Packages > Reload

It then properly updated the UI to let me choose updated software.

Why do I need to click "Reload" manually ?! I expect that to happen automatically when I open the SDK Manager.

Solution 3 - Android

By this step~

Eclipse > Window > Android SDK Manager > Packages > Reload

then install the sdk

ref: http://my.eoe.cn/iceskysl/archive/1027.html

Solution 4 - Android

Eclipse > Window > Android SDK Manager > Preferences > Clear Cache Button click> Done.

Solution 5 - Android

I had this problem in ubuntu.

  • Open a terminal and navigate to the android-sdk-linux folder: cd android-sdk-linux

  • Then manually update the sdk: tools/android update sdk -u

After it is done, restart Eclipse.

Solution 6 - Android

As error suggest : API 18 depends on SDK version n etc etc. So first update SDK tool to latest version (deselect API 18) then try to install API 18.

Solution 7 - Android

Try approving each package one by by instead of doing approve all. If any package has an error, you can't download all at the same time.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNickView Question on Stackoverflow
Solution 1 - AndroidNickView Answer on Stackoverflow
Solution 2 - AndroidSomeone SomewhereView Answer on Stackoverflow
Solution 3 - AndroidiceskyslView Answer on Stackoverflow
Solution 4 - AndroidHoyinView Answer on Stackoverflow
Solution 5 - AndroidChristopherView Answer on Stackoverflow
Solution 6 - AndroidNishant ShahView Answer on Stackoverflow
Solution 7 - Androidcoolcool1994View Answer on Stackoverflow