Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在设备上运行应用程序时出现 UnknownHostException。在模拟器中,它很好。我做了服务器和主机文件的配置。但我不知道我是否必须再做一次。请,任何建议将不胜感激。谢谢!
我能够解决这个问题。重新启动avd,将hosts文件复制到android模拟器,添加互联网权限。然后问题就解决了。