Closed xuyifan-0731 closed 2 months ago
Hi, this is not an error, it means that you've successfully launched the emulator. What you need to do next is to leave this alone and open a new terminal to interact with this emulator. You should be able to find details on what to do next at here.
There is no device found by exceuting "adb devices", and also no screenshot from env_setup/screenshot.py. I think emulator is not successfully launched.
From our end, Boot completed in 12132 ms
indicates a successful boot, so you should be able to view something like
$ adb devices
# List of devices attached
# emulator-5554 device
@Jiayi-Pan @YifeiZhou02 did you observe any cases like that?
In my case, after showingBoot completed in。。。
,I saw:
$ adb devices
# List of devices attached
# emulator-5554 offline
For about 1 min later I execute adb devices again, and I get:
$ adb devices
# List of devices attached
In the same time, other cmd remain
...
INFO | Cold boot: requested by the user
WARNING | Cold boot: requested by the user
INFO | Boot completed in 12132 ms
INFO | Increasing screen off timeout, logcat buffer size to 2M.
and nothing append
This looks strange to me too. We have successfully set the emulator up in many machines. Usually when it says Boot completed, this means that booting is successful and adb devices
should be able to find the device. Maybe you can try if you can find any similar issues in other works that use adb android emulators? such as
We have found the reason. If the current port and port + 1 are occupied (for example, 5554 and 5555 are used for a 5554 machine), this strange error message will appear. In the future, we can consider adding judgment to the code to select a reasonable port.
Hi! Thanks for your great work. I am trying to reproduce your work. But when I am following env_setup/README.md, I get stuck at this phrase:
emulator -avd test_Android "-no-window" "-no-audio" "-skip-adb-auth" "-no-boot-anim" "-gpu" "auto" "-no-snapshot-load"
output of my cmd:
It seems that there is no error reported, but get stuck forever. For more information, here is my device:
I confirm that JDK8, sdkmanager, emulator -version, and kvm have shown the same output as in README.md. Thanks a lot for your help.