Java – unable to resolve host ”; There is no address associated with the host name

Reading RSS links in my android app, I received this error:

In my simulator, I can connect to Google. Com through a browser Please help me solve this problem

Solution

You may not have Internet permissions Try adding this to androidmanifest In the XML file, just before < / manifest >:

<uses-permission android:name="android.permission.INTERNET" />
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>