由网友(回忆再美,终究是梦)分享简介:在我的Android应用程序,用于读取 RSS 的链接,我收到此错误:In my Android application for reading RSS links, I am getting this error:的java.net.UnknownHostException:无法解析主机example.com...
在我的Android应用程序,用于读取 RSS 的链接,我收到此错误:
In my Android application for reading RSS links, I am getting this error:
的java.net.UnknownHostException: 无法解析主机example.com; 与主机没有地址相关联。
java.net.UnknownHostException: Unable to resolve host "example.com"; No address associated with hostname.
在我的模拟器,我可以通过浏览器连接到谷歌。 请帮我解决这个问题。
In my emulator I can connect to Google through a browser. Please help me to resolve this issue.
推荐答案
您可能没有网络
许可。尝试添加到您的AndroidManifest.xml
的文件,前右< /舱单>
:
You probably don't have the INTERNET
permission. Try adding this to your AndroidManifest.xml
file, right before </manifest>
:
<uses-permission android:name="android.permission.INTERNET" />
相关推荐
最新文章