Android常见问题集锦

Troubleshooting Emulator Problems


The adb utility sees the emulator as an actual physical device. For this reason, you might have to use the -d flag with some common adb commands, such as install. The -d flag lets you specify which of several connected devices to use as the target of a command. If you don't specify -d, the emulator will target the first device in its list. For more information about adb, see Android Debug Bridge.


For emulators running on Mac OS X, if you see an error "Warning: No DNS servers found" when starting the emulator, check to see whether you have an/etc/resolv.conf file. If not, please run the following line in a command window:


ln -s /private/var/run/resolv.conf /etc/resolv.conf


See Frequently Asked Questions for more troubleshooting information.

你可能感兴趣的:(Android常见问题集锦)