① 使用adb push進行android模擬器上hosts的修改,push過一次報out of memory錯誤後,hosts文件就不見了。
啟動模擬器的時候加大partition-size:$./adb -avd xxxxx -partition-size 256如果256不夠就再加大。