我想从android studio模拟器或genymotion访问localhost,而无需键入IP地址,而是键入localhost或域名。如果您正在从事Web开发,那么您可以像C:\Windows\System32\drivers\etc\hosts在Windows系统中的文件中为IP分配域一样。我尝试了一些博客的步骤,但无法弄清楚。
C:\Windows\System32\drivers\etc\hosts
请帮帮我。谢谢!
android android-emulator genymotion
android ×1
android-emulator ×1
genymotion ×1