模拟器调试“掉线”问题解决方法

在使用模拟器调试过程中,有时候会发现,模拟器“掉线”了。
在Eclipse的DDMS下看不到device设备了
使用adb devices命令也不能显示,或者是device offline状态
在Eclipse里边直接运行自己的Android程序提示如下
  1. [2011-03-16 16:26:30 - Baike] Android Launch!
  2. [2011-03-16 16:26:30 - Baike] adb is running normally.
  3. [2011-03-16 16:26:30 - Baike] Performing com.baidu.baike.MainActivity activity launch
  4. [2011-03-16 16:26:30 - Baike] Automatic Target Mode: launching new emulator with compatible AVD '1.6-320_480'
  5. [2011-03-16 16:26:30 - Baike] Launching a new emulator with Virtual Device '1.6-320_480'
  6. [2011-03-16 16:26:30 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting
复制代码
遇到这种情况我们可以尝试使用下面两种方法来解决:
方法1:
    执行如下命令
  1. adb root
复制代码
方法2:
    依次执行下面3条命令
  1. adb kill-server
  2. adb devices
  3. adb start-server
复制代码
一般有上面的两种方法就可以解决了,如果还没解决。
那麻烦你把模拟器叉掉,重启一下模拟器吧。

你可能感兴趣的:(Android)