Android Studio 无法安装Android SDK工具26.1.1和模拟器

yvt65v4c  于 2023-01-02  发布在  Android
关注(0)|答案(6)|浏览(417)

无法下载和安装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)
dluptydi

dluptydi1#

为我工作..
1.已安装java
1.将Android Studio作为Administrator运行

xxe27gdn

xxe27gdn2#

在将Android Studio作为Administrator运行后,解决了我的问题。
我现在可以成功下载sdk了。

bqujaahr

bqujaahr3#

检查您的连接,因为它无法下载要安装的程序包

hk8txs48

hk8txs484#

将目标文件夹从/Users/.../Library/...更改为/Users/.../My Folder后,在Mac上为我工作

8ehkhllq

8ehkhllq5#

试试这个
第一个月

  • 确保它具有以下结构

<sdk folder>/cmdline-tools/latest/
|- bin
|- lib
|- ...

bgibtngc

bgibtngc6#

对我有效的是使用AVD管理器下载&安装平台工具(我的AVD使用Android 31):

sdkmanager "platforms;android-31"

要查找可用选项列表,请运行

sdkmanager --list

相关问题