① 使用adb push进行android模拟器上hosts的修改,push过一次报out of memory错误后,hosts文件就不见了。
启动模拟器的时候加大partition-size:$./adb -avd xxxxx -partition-size 256如果256不够就再加大。