更新android SDK的問題

來源:互聯網
上載者:User
    由於我大天朝將google屏蔽的原因,在更新android SDK的時候,可能速度慢還是個小問題,重要的是你更新的時候出各種錯誤,比如錯誤 Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason:
File not found,在網上搜羅了一圈,發現有一種解決辦法如下:① 改hosts檔案的方法,更新速度較快,Windows在C:\WINDOWS\system32\drivers\etc目錄下,Linux使用者開啟/etc/hosts檔案。

② 開啟檔案後添加以下內容
#Google首頁
203.208.46.146  www.google.com
#這行是為了方便開啟Android開發官網 現在好像不翻牆也可以開啟
74.125.113.121  developer.android.com
#更新的內容從以下地址下載
203.208.46.146  dl.google.com
203.208.46.146  dl-ssl.google.com

③ 如果此種方法解決不了問題的話,那麼可以試試一個老外的方法:Question:Step 1: Run /usr/android-sdk-linux_x86/tools/androidStep 2: Click "Available Packages"Step 3: Click "Third Party Add-ons"Receive this error message:Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list.xml, reason: File not foundAnswer:I now spent two hours on this issue* I have no proxy in my system* I forced 'http' insteas of 'https'* I deactivated my virus scanner* I even deactivated Windows firewallNothing helped!Then I had an idea, I am using Windows 7. So if you are using Windows 7 and you have installed android-sdk under 'C:\Programs' then you have to run the sdk as administrator!Windows Start --> Programs --> android --> android-sdk --> right mouse click --> run as administrator.This helped, now I am able to install new packages. 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.