問題描述
我遇到了 emulator-5554 的問題,它一直告訴我它處于離線狀態.
I'm having a problem with emulator-5554, it keeps telling me it is offline.
當我從命令行執行 adb devices
時,它會說
When I do a adb devices
from the command line it says
emulator-5554 離線
即使在重新啟動后,我嘗試了該命令,它仍然顯示它處于脫機狀態.
Even after a fresh restart, I try that command and it still says it is offline.
問題是當我嘗試在命令提示符下使用 abd install <path>
將 .apk 文件安裝到模擬器時,如果我創建另一個設備并且運行那個,然后嘗試安裝 .apk 文件,它說我連接的設備太多.換句話說,我無法安裝我的 .apk 文件.
The problem is when I try to install .apk files to the emulator using abd install <path>
from the command prompt, it tells me that it is offline, if I create another device and run that one, then try to install the .apk files, it says I have too many devices connected. So in other words, I can't install my .apk files.
我到底怎么才能擺脫那個該死的 emulator-5554?我聽說如果您重新啟動,它應該清除所有設備,但這似乎不起作用.就像我的計算機啟動時它正在初始化一樣.有人遇到過這個問題嗎?
How in the world can I get rid of that damn emulator-5554? I heard that if you do a restart, it should clear all the devices, but that does not seem to be working. It is like it is getting initialized when my computer starts up. Has anyone run into this issue?
謝謝
推薦答案
在這種情況下,您可以執行以下所有操作,以確保您的模擬器重新開始工作:
In such a case, you can do all of the following in order to be assured that your emulator starts working again :
- 進入 cmd 并輸入
adb kill-server
- 進入任務管理器,在進程中找到
adb
.如果找到一個,右鍵單擊它并單擊結束進程樹. - 在eclipse中,進入Window>Android Virtual Device Manager,點擊你要啟動的AVD,點擊開始,取消勾選Launch From Snapshot",然后點擊啟動.
- Go to cmd and type
adb kill-server
- Go to task manager and find
adb
in processes. If you find one, right click on it and click on end process tree. - In eclipse, go to Window>Android Virtual Device Manager, click on the AVD you want to launch, click on start and uncheck "Launch From Snapshot" and then click on launch.
就是這樣!這需要一段時間,它應該可以解決您的問題.
That's it! It will take a while and it should resolve your problem.
這篇關于Android emulator-5554 離線的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!