Home Android Emulator 下载失败修复
Post
Cancel

Android Emulator 下载失败修复

日志

1
2
3
4
5
6
7
8
9
Packages to install: - Android Emulator (emulator)


Preparing "Install Android Emulator v.36.2.12".
Downloading https://dl.google.com/android/repository/emulator-darwin_aarch64-14214601.zip
An error occurred while preparing SDK package Android Emulator: Not in GZIP format.
"Install Android Emulator v.36.2.12" failed.
Failed packages:
- Android Emulator (emulator)

Android Emulator 下载失败修复

1
rm -rf ~/Library/Android/sdk/.downloadIntermediates/

执行完以后重新下载

Android 模拟器设置翻墙

1
2
3
4
5
6
7
emulator -avd Pixel9a -http-proxy http://10.0.2.2:7890

// 执行后如果执行一下方法返回是null
adb shell settings get global http_proxy

// 执行以下命令设置翻墙
adb shell settings put global http_proxy 10.0.2.2:7897

weixin.png

公众号名称:怪味Coding
微信扫码关注或搜索公众号名称
This post is licensed under CC BY 4.0 by the author.