Linux下配置Android SDK


该文章介绍下如何在Linux下配置Android SDK。

一、下载android sdk

下载SDK,下载地址点击这里,选择Linux(i386)。因为SDK只有32位的,如果装的是64位系统,则要安装ia32-libs,运行32位程序。安装命令:sudo apt-get install ia32-libs(在Ubuntu中的命令)。下载完成后解压,在终端进入到SDK的根目录,然后执行:tools/android update sdk –no-ui即可开始和Windows里面一样的更新。

  1. [root@app-server1 tools]# android update sdk --no-ui  
  2. Refresh Sources:  
  3.   Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xml  
  4.   Validate XML  
  5.   Parse XML  
  6.   Fetched Add-ons List successfully  
  7.   Refresh Sources  
  8.   Fetching URL: https://dl-ssl.google.com/android/repository/repository-6.xml  
  9.   Validate XML: https://dl-ssl.google.com/android/repository/repository-6.xml  
  10.   Parse XML:    https://dl-ssl.google.com/android/repository/repository-6.xml  
  11.   Fetching URL: https://dl-ssl.google.com/android/repository/addon.xml  
  12.   Validate XML: https://dl-ssl.google.com/android/repository/addon.xml  
  13.   Parse XML:    https://dl-ssl.google.com/android/repository/addon.xml  
  14.   Fetching URL: http://dl.htcdev.com/sdk/addon.xml  
  15.   Validate XML: http://dl.htcdev.com/sdk/addon.xml  
  16.   Parse XML:    http://dl.htcdev.com/sdk/addon.xml  
  17.   Fetching URL: http://software.intel.com/sites/landingpage/android/addon.xml  
  18.   Validate XML: http://software.intel.com/sites/landingpage/android/addon.xml  
  19.   Parse XML:    http://software.intel.com/sites/landingpage/android/addon.xml  
  20.   Fetching URL: http://www.echobykyocera.com/download/echo_repository.xml  
  21.   Validate XML: http://www.echobykyocera.com/download/echo_repository.xml  
  22.   Parse XML:    http://www.echobykyocera.com/download/echo_repository.xml  
  23.   Fetching URL: http://developer.lgmobile.com/sdk/android/repository.xml  
  24.   Validate XML: http://developer.lgmobile.com/sdk/android/repository.xml  
  25.   Parse XML:    http://developer.lgmobile.com/sdk/android/repository.xml  
  26.   Fetching URL: http://android-sdk-addons.motodevupdate.com/addons.xml  
  27.   Validate XML: http://android-sdk-addons.motodevupdate.com/addons.xml  
  28.   Parse XML:    http://android-sdk-addons.motodevupdate.com/addons.xml  
  29.   Fetching URL: http://innovator.samsungmobile.com/android/repository/repository.xml  
  30.   Validate XML: http://innovator.samsungmobile.com/android/repository/repository.xml  
  31.   Parse XML:    http://innovator.samsungmobile.com/android/repository/repository.xml  
  32.   Fetching URL: http://developer.sonymobile.com/edk/android/repository.xml  
  33.   Validate XML: http://developer.sonymobile.com/edk/android/repository.xml  
  34.   Parse XML:    http://developer.sonymobile.com/edk/android/repository.xml  
  35. Installing Archives:  
  36.   Preparing to install archives  
  37.   Downloading Android SDK Platform-tools, revision 11  
  38.   Installing Android SDK Platform-tools, revision 11  
  39.   Stopping ADB server failed (code -1).  
  40.     Installed Android SDK Platform-tools, revision 1199%)  
  41.   Downloading Documentation for Android SDK, API 15, revision 2  
  42.   Installing Documentation for Android SDK, API 15, revision 2  
  43.     Installed Documentation for Android SDK, API 15, revision 297%)  
  44.   Downloading SDK Platform Android 4.0.3, API 15, revision 3  
  45.   Installing SDK Platform Android 4.0.3, API 15, revision 3  
  46.     Installed SDK Platform Android 4.0.3, API 15, revision 396%)  
  47.   Downloading SDK Platform Android 4.0, API 14, revision 3  
  48.   Installing SDK Platform Android 4.0, API 14, revision 3  
  49.     Installed SDK Platform Android 4.0, API 14, revision 396%)  
  50.   Downloading SDK Platform Android 3.2, API 13, revision 1  
  51.   Installing SDK Platform Android 3.2, API 13, revision 1  
  52.     Installed SDK Platform Android 3.2, API 13, revision 198%)  
  53.   Downloading SDK Platform Android 3.1, API 12, revision 3  
  54.   Installing SDK Platform Android 3.1, API 12, revision 3  
  55.     Installed SDK Platform Android 3.1, API 12, revision 398%)  
  56.   Downloading SDK Platform Android 3.0, API 11, revision 2  
  57.   Installing SDK Platform Android 3.0, API 11, revision 2  
  58.     Installed SDK Platform Android 3.0, API 11, revision 298%)  
  59.   Downloading SDK Platform Android 2.3.3, API 10, revision 2  
  60.   Installing SDK Platform Android 2.3.3, API 10, revision 2  
  61.     Installed SDK Platform Android 2.3.3, API 10, revision 298%)  
  62.   Downloading SDK Platform Android 2.2, API 8, revision 3  
  63.   Installing SDK Platform Android 2.2, API 8, revision 3  
  64.     Installed SDK Platform Android 2.2, API 8, revision 399%)  
  65.   Downloading SDK Platform Android 2.1, API 7, revision 3  
  66.   Installing SDK Platform Android 2.1, API 7, revision 3  
  67.     Installed SDK Platform Android 2.1, API 7, revision 399%)  
  68.   Downloading SDK Platform Android 1.6, API 4, revision 3  
  69.   Installing SDK Platform Android 1.6, API 4, revision 3  
  70.     Installed SDK Platform Android 1.6, API 4, revision 399%)  
  71.   Downloading SDK Platform Android 1.5, API 3, revision 4  
  72.   Installing SDK Platform Android 1.5, API 3, revision 4  
  73.     Installed SDK Platform Android 1.5, API 3, revision 499%)  
  74.   Downloading Samples for SDK API 15, revision 2  
  75.   Installing Samples for SDK API 15, revision 2  
  76.     Installed Samples for SDK API 15, revision 296%)  
  77.   Downloading Samples for SDK API 14, revision 2  
  78.   Installing Samples for SDK API 14, revision 2  
  79.     Installed Samples for SDK API 14, revision 296%)  
  80.   Downloading Samples for SDK API 13, revision 1  
  81.   Installing Samples for SDK API 13, revision 1  
  82.     Installed Samples for SDK API 13, revision 195%)  
  83.   Downloading Samples for SDK API 12, revision 1  
  84.   Installing Samples for SDK API 12, revision 1  
  85.     Installed Samples for SDK API 12, revision 195%)  
  86.   Downloading Samples for SDK API 11, revision 1  
  87.   Installing Samples for SDK API 11, revision 1  
  88.     Installed Samples for SDK API 11, revision 195%)  
  89.   Downloading Samples for SDK API 10, revision 1  
  90.   Installing Samples for SDK API 10, revision 1  
  91.     Installed Samples for SDK API 10, revision 195%)  
  92.   Downloading Samples for SDK API 8, revision 1  
  93.   Installing Samples for SDK API 8, revision 1  
  94.     Installed Samples for SDK API 8, revision 196%)  
  95.   Downloading Samples for SDK API 7, revision 1  
  96.   Installing Samples for SDK API 7, revision 1  
  97.     Installed Samples for SDK API 7, revision 196%)  
  98.   Downloading Android Support, revision 8  
  99.   Installing Android Support, revision 8  
  100.     Installed Android Support, revision 891%)  
  101.   Downloading Google AdMob Ads SDK, revision 6  
  102.   Installing Google AdMob Ads SDK, revision 6  
  103.     Installed Google AdMob Ads SDK, revision 694%)  
  104.   Downloading Google Analytics SDK, revision 2  
  105.   Installing Google Analytics SDK, revision 2  
  106.     Installed Google Analytics SDK, revision 292%)  
  107.   Downloading Google Play APK Expansion Library, revision 1  
  108.   Installing Google Play APK Expansion Library, revision 1  
  109.     Installed Google Play APK Expansion Library, revision 178%)  
  110.   Downloading Google Play Billing Library, revision 2  
  111.   Installing Google Play Billing Library, revision 2  
  112.     Installed Google Play Billing Library, revision 284%)  
  113.   Downloading Google Play Licensing Library, revision 2  
  114.   Installing Google Play Licensing Library, revision 2  
  115.     Installed Google Play Licensing Library, revision 272%)  
  116.   Downloading Google Web Driver, revision 2  
  117.   Installing Google Web Driver, revision 2  
  118.     Installed Google Web Driver, revision 299%)  
  119.   Downloading Android SDK Tools, revision 19  
  120.   Installing Android SDK Tools, revision 19  
  121.     Installed Android SDK Tools, revision 1999%)  
  122.   Downloading ARM EABI v7a System Image, Android API 15, revision 2  
  123.   Installing ARM EABI v7a System Image, Android API 15, revision 2  
  124.     Installed ARM EABI v7a System Image, Android API 15, revision 299%)  
  125.   Downloading Intel x86 Atom System Image, Android API 15, revision 1  
  126.  ………(下面省略)………  

上面更新的过程中一些特殊的SDK是需要用户名和密码的,如:摩托罗拉和HTC。

我们到这些官网注册一下即可,摩托罗拉和HTC的网址:

注册官网:http://htcdev.com/ 这个是HTC的;具体的注册过程我就不多说了,要是看不懂的大家直接在线翻译一下就可以了

另外一个:https://developer.motorola.com/ 这个是MOTO的,也是一样的需要注册一下,方法同上面的HTC的一样。

  • 1
  • 2
  • 下一页

相关内容