android - java.net.UnknownHostException(Unable to resolve host "play.googleapis.com": No address associated with hostname) -
full error message below. occurs when running app in emulator uses urban airship , google cloud messaging. not see on device.
java.net.unknownhostexception(unable resolve host "play.googleapis.com": no address associated hostname)
btw, ua guys how shut off ua? commenting out ua.takeoff() leads null point exceptions! way go! thats way end on stackoverflow!
most common reason unknownhostexception missing internet-permission. check androidmanifest.xml
<uses-permission android:name="android.permission.internet"></uses-permission>
update:
later comment says, internet connectivity allowed , works on device. it's emulator issue. possible solutions:
- use ip instead of hostname (for test)
- re-create avd
- check min-sdk seetings against avd sdk version
Comments
Post a Comment