android-emulator - 如何使用命令行设置 Android 模拟器的代理?

标签 android-emulator

我能够从命令行启动具有代理设置的模拟器(Android SDK 4.0.3),并且浏览器能够找到该站点,但页面无法正确加载。

emulator -avd myavd -http-proxy=http://abc-proxy.xyz.com:8080

最佳答案

使用以下步骤 -

1.右键项目 -> 运行方式 -> 运行配置 -> 目标

2.向下滚动

3.附加模拟器命令行选项,键入

-http-proxy http://10.1.1.10:8080

4.重新启动你的模拟器,它就会工作,它也适合我

关于android-emulator - 如何使用命令行设置 Android 模拟器的代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9322357/

相关文章:

android - 模拟器无法启动

android-studio - 如何在平板电脑上安装Google Play Market-Android模拟器?

java - 在android中创建文件的问题

android - 使用 phonegap 并在本地运行时出现 ajax 导航错误

Android Studio 模拟器和 "Process finished with exit code 0"

android - 启动接收器在模拟器中不工作

android - Ionic 与 Android 模拟器 : Automatically send location?

react-native - 在 ubuntu 19.10 上设置 React Native Android 模拟器

android - AVD 无法启动(SDK 工具 22.6.2)

jquery-plugins - 虚拟机中的 Android X86 是否代表了 Android Emulator 的真正替代品?