安装 Android 4.2 API 的问题

我今天通过 Eclipse 将 ADT 更新为21版。现在,当我打开 SDK Manager 时,我希望有一个像“ Android 4.2(API 17)”这样的文件夹,其中包含 SDK 平台和 API、文档等。然而,相反,我只得到一个名为“ API 17”的文件夹,其中唯一的东西是“ Google API”,我甚至不能安装,因为

安装此包还需要安装: - 缺少 SDK 平台 Android,API 17

我在这里做什么? 谢谢

20831 次浏览

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.

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

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.

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.

By this step~

1) Eclipse > Window > Android SDK Manager > Packages > Reload

2) then install the sdk

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

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.

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.