Android SDK Manager 下载问题

自己在开发的时候,用SDK Manager下载samples有些问题,简单办法就是单独下载Android 4.3 samples for SDK,链接如下:

http://dl-ssl.google.com/android/repository/samples-18_r01.zip

  类似的可以参见:http://www.hariadi.org/android/manual-download-of-android-sdk-components/

  失败的原因:主要是网络问题,直接连接google服务器有问题。查看Log,类似下面提示:

Fetching URL: https://dl-ssl.google.com/android/repository/repository-8.xml
Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-8.xml, reason: HttpHostConnect Connection to https://dl-ssl.google.com refused
Done loading packages.

  解决办法:

goagent解决Android SDK Manager下载过慢的问题

刚刚接触安卓开发,下载了Android SDK,解压后里面就已经有了eclipse和sdk,但是只有Android4.3的SDK,打开Android SDK Manager,发现下载进度条几乎是不动的,查看日志,卡在了Fetching https://dl-ssl.google.com/android/repository/addons_list-2.xml这一步

如果开启了goagent的话,这个问题其实很好解决,在打开的Android SDK Manager上方选择tools----Options,HTTP proxy server填写127.0.0.1, HTTP proxy port填写8087,关闭后重启eclipse,打开Android SDK Manager就会发现下载速度“杠杠”的~

从中其实可以看出,goagent的工作原理其实更像是把自己本机的电脑设置成了一个代理服务器,开启了8087的代理端口。

摘录自:http://www.cnblogs.com/kongkongyzt/p/3236155.html

感谢!

另一种方法也可以一试:能解决国内访问Google服务器的困难
启动 Android SDK Manager ,打开主界面,依次选择「Tools」、「Options...」,弹出『Android SDK Manager - Settings』窗口;
在『Android SDK Manager - Settings』窗口中,在「HTTP Proxy Server」和「HTTP Proxy Port」输入框内填入mirrors.neusoft.edu.cn和80,并且选中「Force https://...sources to be fetched using http://...」复选框。设置完成后单击「Close」按钮关闭『Android SDK Manager - Settings』窗口返回到主界面;
依次选择「Packages」、「Reload」。

参考自:http://blog.csdn.net/dull_boy2/article/details/10422379

------------------------------------------------------------------

我首先尝试了第一种方法,结果是127.0.0.1:8087仍然被refused了

于是用了第二种方法,马上,各种东西都有了(原先只有4.3而且每有samples选项)


List of Sample Apps The list below provides a summary of the sample applications that are available with the Android SDK. Using the links on this page, you can view the source files of the sample applications in your browser. You can also download the source of these samples into your SDK, then modify and reuse it as you need. For more information, see Getting the Samples. API Demos A variety of small applications that demonstrate an extensive collection of framework topics. Backup and Restore A simple example that illustrates a few different ways for an application to implement support for the Android data backup and restore mechanism. Bluetooth Chat An application for two-way text messaging over Bluetooth. BusinessCard An application that demonstrates how to launch the built-in contact picker from within an activity. This sample also uses reflection to ensure that the correct version of the contacts API is used, depending on which API level the application is running under. Contact Manager An application that demonstrates how to query the system contacts provider using the ContactsContract API, as well as insert contacts into a specific account. Home A home screen replacement application. JetBoy A game that demonstrates the SONiVOX JET interactive music technology, with JetPlayer. Live Wallpaper An application that demonstrates how to create a live wallpaper and bundle it in an application that users can install on their devices. Lunar Lander A classic Lunar Lander game. Multiple Resolutions A sample application that shows how to use resource directory qualifiers to provide different resources for different screen configurations. Note Pad An application for saving notes. Similar (but not identical) to the Notepad tutorial. SampleSyncAdapter Demonstrates how an application can communicate with a cloud-based service and synchronize its data with data stored locally in a content provider. The sample uses two related parts of the Android framework — the account manager and the synchronization manager (through a sync adapter). Searchable Dictionary A sample application that demonstrates Android's search framework, including how to provide search suggestions for Quick Search Box. Snake An implementation of the classic game "Snake." Soft Keyboard An example of writing an input method for a software keyboard. Spinner A simple application that serves as an application-under-test for the SpinnerTest sample application. SpinnerTest An example test application that contains test cases run against the Spinner sample application. To learn more about the application and how to run it, please read the Activity Testing tutorial. TicTacToeLib An example of an Android library project that provides a game-play Activity to any dependent application project. For an example of how an application can use the code and resources in an Android library project, see the TicTacToeMain sample application. TicTacToeMain An example of an Android application that makes use of code and resources provided in an Android library project. Specifically, this application uses code and resources provided in the TicTacToeLib library project. Wiktionary An example of creating interactive widgets for display on the Android home screen. Wiktionary (Simplified) A simple Android home screen widgets example.
### 回答1: Android SDK Manager 是一个用于下载和管理 Android SDK 工具和平台的工具。它可以让开发人员轻松地下载和更新 Android SDK 工具和平台,以便他们可以构建和测试他们的应用程序。要下载 Android SDK Manager,您可以访问 Android 开发者网站并下载最新版本的 Android SDK 工具包。然后,您可以使用 Android SDK Manager 工具来下载和安装所需的 SDK 工具和平台。 ### 回答2: Android SDK ManagerAndroid开发工具包中的一个重要组成部分,它提供了一种下载,安装和管理Android SDK工具和平台组件的便捷方法。以下是关于Android SDK Manager下载的详细信息。 安装Android Studio 首先,要下载和安装Android SDK Manager,需要先下载和安装Android Studio。可以在官方网站上找到适合个人电脑和操作系统的Android Studio版本,并根据指示进行安装。 使用SDK Manager 一旦Android Studio安装完成,并打开已经打开的项目,可以在“Welcome to Android Studio”对话框中,点击右下角的“Configure”按钮,找到“SDK Manager”选项。或者,也可以在Android Studio的主界面中,点击“Tools”菜单,然后选择“SDK Manager”。 SDK Manager中显示了所有当前可用的SDK工具和平台组件。用户可以根据需要选择相应的组件,然后点击“Apply”按钮,以开始下载和安装所选工具和平台组件。如果是首次使用SDK Manager,那么可能需要先安装一些必要的组件。例如,必须先安装“Android SDK Build-Tools”,以确保所有的应用程序都能编译成功。 SDK Manager提供了一个简洁的界面,让用户可以轻松地浏览和选择需要的组件,并提供了下载和安装元件的进度信息和状态更新。下载速度会根据网速而有所不同,因此需要一定的耐心和等待。 总的来说,Android SDK Manager是一个必备的工具,无论是进行应用程序开发,还是进行其他类型的Android开发,都需要进行下载和安装。它提供了一个方便的方式,以快速下载和更新所需的工具和组件。同时,在使用SDK Manager时要保持注意,确保已下载和安装了正确的组件,为开发过程提供了所需的基本环境。 ### 回答3: Android SDK Manager是开发Android应用程序所必要的工具,用户通过它可以下载Android不同版本、构建工具及相关的开发支持包。 下载Android SDK Manager可以通过两种方式,一种是直接从Android Studio的菜单栏中打开,另一种是从Android Developer网站中下载最新版本的SDK Manager并手动安装。 第一种方式,打开Android Studio后,点击上方菜单栏上的“Tools”,然后再点击“SDK Manager”,就会打开SDK Manager窗口。在窗口中可以看到所有可用的SDK组件,包括不同的Android版本、构建工具及相关的开发支持包。通过勾选需要下载的组件,最后点击“Apply”按钮即可开始下载下载过程可能会持续一段时间,取决于所选择的组件的大小和网络速度。 第二种方式,用户可以在Android Developer网站中下载最新版本的SDK Manager下载后找到“SDK Manager.exe”文件并双击打开,即可进入SDK Manager窗口。在窗口中可以选择需要下载的组件,然后再点击“Install”按钮即可开始下载。 需要注意的是,在下载Android SDK Manager时,用户需要保持网络连接,确保Windows防火墙没有阻止下载。另外,对于中国用户,下载速度可能会比较慢,建议使用代理或VPN加速下载。 总之,无论是哪种方式,安装Android SDK Manager都是为了方便开发人员获取、开发和测试不同版本的Android应用程序,提高开发效率和代码的质量。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值