日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

The following SDK components were not installed: extra-google-m2repository and platform-tools

發布時間:2024/9/27 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 The following SDK components were not installed: extra-google-m2repository and platform-tools 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

安裝android studio到最后一步的時候遇見了這個問題 。

android studio安裝詳見Android Studio 安裝

經過查閱多篇博客? 把他們的解決方案放在一起一頓操作猛如虎,然后就成了。。。

2篇原文鏈接我放在這里:

Android Studio新建工程時SDK缺少extra-android-m2repository解決辦法

The following SDK component was not installed: extra-google-m2repository

1.啟動 Android SDK Manager ,打開主界面,依次選擇『Tools』、『Options...』,彈出『Android SDK Manager - Settings』窗口;

2.在『Android SDK Manager - Settings』窗口中,在『HTTP Proxy Server』和『HTTP Proxy Port』輸入框內填入上面鏡像服務器地址(不包含http://,如下圖)和端口,并且選中『Force https://... sources to be fetched using http://...』復選框。設置完成后單擊『Close』按鈕關閉『Android SDK Manager - Settings』窗口返回到主界面;

3.依次選擇『Packages』、『Reload』。


然后選擇Extras 里面的Google Repository下載,之后重新打開android studio就好了

>>在HOSTS文件里最后一行添加#?74.125.237.1?dl-ssl.google.com

>>HOSTS文件位置:C:\Windows\system32\drivers\etc\hosts

>>在Android?Studio的安裝文件BIN文件夾里打找到“idea.properties”

>>idea.properties最后一行添加:disable.android.first.run=true

設置完其實SDK還是無法更新并安裝組件,并不是所有電腦都是能翻墻的

最好還是在tools中設置一下SDK在線更新鏡像服務器

Android SDK在線更新鏡像服務器大全

總結

以上是生活随笔為你收集整理的The following SDK components were not installed: extra-google-m2repository and platform-tools的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。