Android Studio如何更新support repository

來源:互聯網
上載者:User

標籤:article   tor   manage   copy   androi   問題   osi   size   center   

轉自:

http://blog.csdn.net/sinat_29696083/article/details/70256377

剛進新公司,熟悉新業務中。老大叫我看看關於ConstraintLayout的知識,然後果斷看了郭神的部落格,講的很好很細,學到不少。剛上道的童鞋可以熟悉一下

http://blog.csdn.net/guolin_blog/article/details/53122387

他的部落格中,其中部落格中有這麼一句:

compile ‘com.Android.support.constraint:constraint-layout:1.0.0-beta4‘

我的想很多童鞋應該卡在這個地方了,constraint-layout並不能理想的植入到我們的project中,一sycn就報錯!!!ConstraintLayout是Android Studio 2.2中主要的新增功能之一,也是Google在去年的I/O大會上重點宣傳的一個功能,它存在於support repository中,我們知道support repository是Google的支援庫管理工具,可以在項目中添加你想要的功能。

如果沒有的話就去SDK Manager中下載:

最後就是一個修改host檔案的問題了,開啟你的host檔案。windows在c:\windows\system32\drivers\etc中,Mac在/etc/hosts中,然後插入:

203.208.40.136   dl.google.com 64.233.189.136  dl-ssl.google.com

 

當然可以用的ip網上很多,你也可以在這裡擷取,作為推介:

http://ping.chinaz.com/

 

最後從Android Studio中,開啟SDK Manager表徵圖試試,應該可以了。如果還有問題有可能需要換一下你的IP地址,這樣就可以更新support repository中你需要的庫檔案了。

 

Android Studio如何更新support repository

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.