无法安装Android 4.2 API

时间:2022-09-19 07:45:26

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

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

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

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

What do I do here? Thanks

我该怎么办?谢谢

7 个解决方案

#1


225  

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.

经过一番探讨,我自己想出了这个。我进入了SDK管理器的设置,清除了缓存,并告诉它使用HTTPS,然后刷新列表,它们都正常显示。

#2


54  

Eclipse > Window > Android SDK Manager > Packages > Reload

Eclipse> Window> Android SDK Manager> Packages> Reload

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

然后它正确更新了UI,让我选择更新的软件。

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

为什么我需要手动点击“重新加载”?我希望在打开SDK Manager时自动发生这种情况。

#3


16  

By this step~

通过这一步〜

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

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

2) then install the sdk

2)然后安装sdk

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

参考:http://my.eoe.cn/iceskysl/archive/1027.html

#4


11  

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

Eclipse> Window> Android SDK Manager>首选项>清除缓存按钮单击>完成。

#5


4  

I had this problem in ubuntu.

我在ubuntu中遇到过这个问题。

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

    打开终端并导航到android-sdk-linux文件夹:cd android-sdk-linux

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

    然后手动更新sdk:tools / android update sdk -u

After it is done, restart Eclipse.

完成后,重新启动Eclipse。

#6


4  

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.

正如错误所示:API 18依赖于SDK版本n等等。因此,首先将SDK工具更新为最新版本(取消选择API 18),然后尝试安装API 18。

#7


0  

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.

尝试逐个批准每个包,而不是批准所有。如果任何包有错误,则无法同时下载所有包。

#1


225  

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.

经过一番探讨,我自己想出了这个。我进入了SDK管理器的设置,清除了缓存,并告诉它使用HTTPS,然后刷新列表,它们都正常显示。

#2


54  

Eclipse > Window > Android SDK Manager > Packages > Reload

Eclipse> Window> Android SDK Manager> Packages> Reload

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

然后它正确更新了UI,让我选择更新的软件。

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

为什么我需要手动点击“重新加载”?我希望在打开SDK Manager时自动发生这种情况。

#3


16  

By this step~

通过这一步〜

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

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

2) then install the sdk

2)然后安装sdk

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

参考:http://my.eoe.cn/iceskysl/archive/1027.html

#4


11  

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

Eclipse> Window> Android SDK Manager>首选项>清除缓存按钮单击>完成。

#5


4  

I had this problem in ubuntu.

我在ubuntu中遇到过这个问题。

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

    打开终端并导航到android-sdk-linux文件夹:cd android-sdk-linux

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

    然后手动更新sdk:tools / android update sdk -u

After it is done, restart Eclipse.

完成后,重新启动Eclipse。

#6


4  

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.

正如错误所示:API 18依赖于SDK版本n等等。因此,首先将SDK工具更新为最新版本(取消选择API 18),然后尝试安装API 18。

#7


0  

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.

尝试逐个批准每个包,而不是批准所有。如果任何包有错误,则无法同时下载所有包。