zoukankan      html  css  js  c++  java
  • 命令行 更新Android sdk

    使用如下代理服务器:

    大连东软信息学院镜像服务器地址:

    http://mirrors.neusoft.edu.cn 端口:80

    北京化工大学镜像服务器地址:

    IPv4: http://ubuntu.buct.edu.cn/ 端口:80
    IPv4: http://ubuntu.buct.cn/ 端口:80
    IPv6: http://ubuntu.buct6.edu.cn/ 端口:80

    上海GDG镜像服务器地址:

    http://sdk.gdgshanghai.com 端口:8000


    想查看列表
    /opt/android-sdk-linux/tools$ ./android list sdk --proxy-host sdk.gdgshanghai.com --proxy-port 8000 -s

    然后再使用 update sdk 取下来,比如去 extra-android-support 就输入如下内容:
    /opt/android-sdk-linux/tools$ ./android update sdk --proxy-host sdk.gdgshanghai.com --proxy-port 8000 -s -u -t extra-android-support
    或者输入
    /opt/android-sdk-linux/tools$ ./android update sdk --proxy-host sdk.gdgshanghai.com --proxy-port 8000 -s -u -t 35

    如果发现更新后总是提示 There is nothing to install or update.
    则返回到上一级目录,删除 temp 文件夹,然后再进入tools目录执行上面命令。
    如果还不行,检查 home 目录的.android目录权限是否可写。
    如果还不行,再检查代理服务器端口和地址,以及是否使用了 -s 参数强制用 http。

    android 程序遇到以上错误不会提示错误,只是提示There is nothing to install or update.
    比如网络代理不通也做如此提示,真是坑。

  • 相关阅读:
    使用awrrpt.sql 生成AWR报告
    oracle简单物化视图
    oracle 查询重复内容
    windows server 2008 服务器 oracle11g降级oracle10g遇到的种种问题
    简单js条码生成器
    tomcat服务器禁用非post、get方法的坑
    委托和事件
    消息队列(Message Queue)简介及其使用
    架构师修炼之道
    Xcode7 使用NSurl发送HTTP请求报错
  • 原文地址:https://www.cnblogs.com/maxinliang/p/5083495.html
Copyright © 2011-2022 走看看