Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I already solved the problem... it was problem of configuration of hosts on emulator

To solve the problem follow these steps...

With the emulator arleady opened, run:

cd adt-bundle/sdk/platform-tools/

./adb -s  emulator-5554 remount

To remount the filesystem so its not read only and you’ll be able to change the hosts file.

Then run:

./adb -s  emulator-5554 pull /etc/hosts

This gets the current hosts file from the device. Edit it in whatever text editor, it’s been pulled to the current working dir. I used gedit. gedit hosts

and add the following line

10.0.2.2   machineName

in my case

10.0.2.2   rocha

Finally run:

./adb -s  emulator-5554 push hosts /etc/hosts