Android emulator (virtual device) UnknownHostException on Mac OS X

Got an error while trying to run an application using the internet on an Android Virtual Device (AVD) on my Mac OS X Snow Leopard (1.6) computer :

java.net.UnknowHostException

Even the Android browser was not able to connect to the Internet.

Solution? Turns out one must run the emulator with administrative privileges (using sudo…) in order to use the host computer’s network connection!

Tags: android
comments powered by Disqus