模擬器除錯“掉線”問題解決方法
阿新 • • 發佈:2019-02-20
在Eclipse的DDMS下看不到device裝置了
使用adb devices命令也不能顯示,或者是device offline狀態
在Eclipse裡邊直接執行自己的Android程式提示如下
-
[2011-03-16 16:26:30 - Baike] Android Launch!
-
[2011-03-16 16:26:30 - Baike] adb is running normally.
-
[2011-03-16 16:26:30 - Baike] Performing com.baidu.baike.MainActivity activity launch
-
[2011-03-16 16:26:30 - Baike] Automatic Target Mode: launching new emulator with compatible AVD '1.6-320_480'
-
[2011-03-16 16:26:30 - Baike] Launching a new emulator with Virtual Device '1.6-320_480'
- [2011-03-16 16:26:30 - Emulator] emulator: ERROR: the user data image is used by another emulator. aborting
方法1:
執行如下命令
- adb root
依次執行下面3條命令
-
adb kill-server
-
adb devices
- adb start-server
那麻煩你把模擬器叉掉,重啟一下模擬器吧。