如何在 Eclipse 中安装旧的 Android SDK

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11296302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:27:05  来源:igfitidea点击:

How to install older Android SDK in Eclipse

androideclipseapisdk

提问by John Brunner

I'm working at the moment at a simple app in eclipse for android. Just receiving and sending data, and using the camera API.

我目前正在 eclipse 中为 android 开发一个简单的应用程序。只需接收和发送数据,并使用相机 API。

I've set the minSDKversion to 8, because I think that has the widest user base. But at the beginning of the project eclipse was asking me which target SDK version I would use, and because I had just one installed (the latest 4.0.3) I've took this.

我将 minSDKversion 设置为 8,因为我认为它拥有最广泛的用户群。但是在项目开始时,eclipse 询问我将使用哪个目标 SDK 版本,因为我只安装了一个(最新的 4.0.3),所以我选择了它。

Now I'm asking me if it wouldn't be wiser to install a lower SDK, like Android 2.2, because it would be not that big (compared to the 4.0.3) and my app would not have included all the fancy new features, which are not used in any way?! Or is this complete nonsense I'm talking here, and just should take my 4.0.3 SDK? When not, how can I install a lower version? Help -> SDK Manageris not showing old SDKs...

现在我问我安装较低的 SDK 是否更明智,例如 Android 2.2,因为它不会那么大(与 4.0.3 相比)并且我的应用程序不会包含所有花哨的新功能,哪些没有以任何方式使用?!还是我在这里说的这完全是胡说八道,只应该使用我的 4.0.3 SDK?如果没有,如何安装较低版本?Help -> SDK Manager没有显示旧的 SDK...

回答by javajavajava

Here is a very helpful link that will probably answer your question: http://developer.android.com/sdk/installing/adding-packages.html

这是一个非常有用的链接,可能会回答您的问题:http: //developer.android.com/sdk/installing/adding-packages.html

Basically, open up the Android SDK manager and it should give you a list of packages that you can install! From there you can choose old SDKs!

基本上,打开 Android SDK 管理器,它应该会为您提供可以安装的软件包列表!从那里你可以选择旧的 SDK!

回答by ashwaniKumar

hey i faced the same issue as yours usually while updating due to this error , it is unable to fetch the older SDKs Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not found

嘿,由于此错误,我在更新时通常遇到与您相同的问题,无法获取较旧的 SDK 无法获取 URL https://dl-ssl.google.com/android/repository/addons_list.xml,原因:文件未找到

This is how you can fix it : 1) Go to Window > AndroidSDK Manager 2) select tools> options 3) set the proxy (if u r sitting behind proxy) 4) in checkboxes check Obsolete option (in Android SDK Manager) 5) go to Packages > reload (in Android SDK Manager)

这是您可以修复它的方法:1) 转到窗口 > AndroidSDK 管理器 2) 选择工具 > 选项 3) 设置代理(如果您坐在代理后面) 4)在复选框中检查过时选项(在 Android SDK 管理器中) 5)转到到包 > 重新加载(在 Android SDK 管理器中)

This worked for me In case you are using windows7 . Go to Android SDK Manager location > right click > Run as Administrator

如果您使用的是 windows7,这对我有用。转到 Android SDK Manager 位置 > 右键单击​​ > 以管理员身份运行

Best Regards, Ashwani kumar

最好的问候, 阿什瓦尼·库马尔

回答by Kent

I was having a problem with this also. I tried all of the things listed in the other answers here and nothing worked. I went into Tools/Options (in the Android SDK Manager) and checked "Force https:// sources to be fetched using http://" and reloaded and the older APIs magically appeared.

我也遇到了这个问题。我尝试了此处其他答案中列出的所有内容,但没有任何效果。我进入工具/选项(在 Android SDK 管理器中)并选中“强制使用 http:// 获取 https:// 源”并重新加载,旧的 API 神奇地出现了。

回答by user2914421

if u want minSDKversion from its maxSDKversion 1.select maxSDKversion and delete all old pakages . 2. after doing it sdk manager will show all its older versions . 3. select required version and install all packages again. :) :) it worked for me .. just try .

如果你想要 minSDKversion 从它的 maxSDKversion 1.select maxSDKversion 并删除所有旧包。2. 完成后,sdk 管理器将显示其所有旧版本。3. 选择需要的版本并重新安装所有软件包。:) :) 它对我有用.. 试试吧。