如何让模拟器访问公司内网测试服务器
修改原来的 ~/.bash_aliases 里的
a6="/opt/android/sdk/tools/emulator -avd a6"
为
a6="/opt/android/sdk/tools/emulator -avd a6 -writable-system"
然后关闭自己的模拟器,再重新开启安卓模拟器
然后:
adb root
adb remount
adb shell
echo '192.168.0.133 t.dongmeiwei.com'>>/etc/hosts
不是安卓模拟器的, ios 模拟器 同 系统的 /etc/hosts 貌似无需需求....
这个人暂时没有 freestyle