无法下载和安装Android SDK工具26.1.1和模拟器。
以下是日志输出:
To install:
- Android Emulator (emulator)
- Android SDK Tools (tools)
Preparing "Install Android Emulator (revision: 26.1.4)".
Downloading https://dl.google.com/android/repository/emulator-windows-4266726.zip
An error occurred while preparing SDK package Android Emulator: Cannot download 'https://dl.google.com/android/repository/emulator-windows-4266726.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation07\emulator-windows-4266726.zip (The system cannot find the path specified)
, response: 200 OK.
"Install Android Emulator (revision: 26.1.4)" failed.
Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation02\android\repository\sdk-tools-windows-4333796.zip (The system cannot find the path specified)
, response: 200 OK
"Install Android SDK Tools (revision: 26.1.1)" failed.
Preparing "Install Android SDK Tools (revision: 26.1.1)".
Downloading https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip
An error occurred while preparing SDK package Android SDK Tools: Cannot download 'https://dl.google.com/android/repository/sdk-tools-windows-4333796.zip': C:\Users\hp\AppData\Local\Temp\PackageOperation02\sdk-tools-windows-4333796.zip (The system cannot find the path specified)
, response: 200 OK.
"Install Android SDK Tools (revision: 26.1.1)" failed.
Failed packages:
- Android Emulator (emulator)
- Android SDK Tools (tools)
6条答案
按热度按时间dluptydi1#
为我工作..
1.已安装java
1.将
Android Studio
作为Administrator
运行xxe27gdn2#
在将
Android Studio
作为Administrator
运行后,解决了我的问题。我现在可以成功下载
sdk
了。bqujaahr3#
检查您的连接,因为它无法下载要安装的程序包
hk8txs484#
将目标文件夹从
/Users/.../Library/...
更改为/Users/.../My Folder
后,在Mac上为我工作8ehkhllq5#
试试这个
第一个月
<sdk folder>/cmdline-tools/latest/
|- bin
|- lib
|- ...
bgibtngc6#
对我有效的是使用AVD管理器下载&安装平台工具(我的AVD使用Android 31):
要查找可用选项列表,请运行