我安裝最新版后進入就提示"Unable to access Android SDK add-on list",而且進入后無法安裝,提示"Nothing to do! Android SDK is up to date. SDK emulator directory is missing",查了好久終於找到了可行的方法
參考:
https://blog.csdn.net/linZinan_/article/details/113623396
https://blog.csdn.net/CaiNiao_hu/article/details/119605806
https://blog.csdn.net/weixin_49511001/article/details/114017704
以下是具體解決流程:
首先刪除以下兩個文件夾中的AndroidStudio相關文件夾
- C:\Users\用戶名\AppData\Local\Google
- C:\Users\用戶名\AppData\Roaming\Google
然后訪問https://developer.android.com/studio/archive,下載對應系統的Android Studio 3.6.3,2020 年 4 月 17 日
然后正常安裝,最開始還會提示"Unable to access Android SDK add-on list",點擊cancel即可,在進入后可正常安裝sdk
在安裝過程中又提示"HAXM installation failed.",HAXM是一種硬件輔助虛擬化引擎
- 如果你是intel用戶:進入BIOS,搜索VMX,點擊選擇enabled,然后重新安裝HAMX即可
- 如果你是AMD用戶:在AS中新建一個項目,打開File–>Setting,在Appearance&Behavior->System Setting下的Android SDK中找到SDK Tools中的Android Emulator Hypervisor Driver for AMD Processors(installer)並開啟,點擊Apply,安裝完成后,關閉AS;在電腦中找到C:\Users\用戶名\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver(此路徑參考你具體的安裝sdk路徑),找到silent_install.bat,右鍵管理員身份運行
再次進入AS,此時再update到最新版,便不會出現sdk相關問題了
如果在上述過程中出現Proxy Setting界面,勾選最下方的Do not show this dialong in the future,再點擊NO,然后打開File–>Setting,在Appearance&Behavior->System Setting->HTTP Proxy選擇Auto-detect proxy setting,在Automatic proxy configuration URL里輸入http://mirrors.neusoft.edu.cn/即可
