-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emulator hangs on startup screen with "android" flashing #21
Comments
Hey, any one still working on this? This is super helpful from the look of it. I am wondering if this is due to i am using the VM or i did not follow the steps correctly. Thank you for your help. Thanks |
Hi, do you have enough memory and disk space to run container? It works not very fast, well, starts at least as usual Android VM, and if you are using weak machine it takes a lot of time get working instance. |
I also have this problem when trying to run it via the terminal with no GUI. I narrowed it down to the last command in the entrypoint.sh file. If I look at the logs, it just stops and hangs after a while. The last line in the log is: emulator: ping command: /usr/local/android-sdk/tools/ddms ping emulator 22.6.4.0 "" "" "" I also posted my question and ingfo about this on the Docker hub |
Well, this is a correct last line. Usually, when you are connecting by VNC it also shows some connection parameters. Could you provide your machine specs? Are you using Docker in Linux or Windows with Oracle VirtualBox VM? |
Hi I am using docker on a Linux Ubuntu server on Virtual Box VM. VM has 4GB memory and 30GB disk space |
Thank you very much for responding. Sorry i was off town for a while. Here is what i did:
Is there anything i am doing wrong? Ted |
Any help please ? |
Some update on this. But when i try: sudo docker run -e "EMULATOR=android-22" -e "ARCH=armeabi-v7a" -d -P --name android tracer0tong/android -emulator They are not working, it still hangs on the android load screen. I also tried "EMULATOR=android-21" Can anyone help? Thanks |
Sorry, I have vacation, so no time to check issues. I will try do reproduce problem. |
On my case the problem APPARENTLY was that my machine was missing this package: I have updated what was installed and selected this package that was not selected. Running Windows 8.1 64bit / VS 2017 |
@InsomniumBR I'm currently also trying to get the android-22 x86 version running on Windows 10 in Docker for Windows, and I'm also getting the behavior described above. PS: the android-19 x86 version is working for me, the android-21 is also stuck at the logo What do you mean by:
What exactly did you change ? the Dockerfile ? |
@drywolf looks like @InsomniumBR rebuilt container by himself. I'm usually testing container from Dockerhub. Theoretically Android can stuck if he has not enough memory. If you can see logo - system started to boot (this is bootloader screen). Question is why he couldn't start. If you have tried to build container by yourself, try to install all ABIs from Dockerfile. All systems images and etc. Also try to use image from Dockerhub, which works at least for me on Windows 7. |
@drywolf @tracer0tong Sorry guys! I am not using a docker or container. I just got here because I had the same symptoms on the title. @drywolf I am out of office now, but I will try to remember. I was using Visual Studio 2017 with Android SDK Manager to debug some stuff here, and I could not boot an emulator based on x86 (Arm-based was working well.) So I found that package that I mentioned before inside the package lists to download from Android SDK manager. Then I recreated the AVD (android virtual device) selecting now x86_64 (something like that) instead of just x86. And It worked. Sorry to no have more details on that. I am pretty new on Xamarin/Android/iOS development. |
1 similar comment
@drywolf @tracer0tong Sorry guys! I am not using a docker or container. I just got here because I had the same symptoms on the title. @drywolf I am out of office now, but I will try to remember. I was using Visual Studio 2017 with Android SDK Manager to debug some stuff here, and I could not boot an emulator based on x86 (Arm-based was working well.) So I found that package that I mentioned before inside the package lists to download from Android SDK manager. Then I recreated the AVD (android virtual device) selecting now x86_64 (something like that) instead of just x86. And It worked. Sorry to no have more details on that. I am pretty new on Xamarin/Android/iOS development. |
@tracer0tong Thanks for the reply. I looked at the adb log output for the v22 image, which gives the following:
The emulator is stuck at this point and does not print any other log messages. For comparison, the v19 android image keeps outputting adb messages pretty much all the time during boot and even after it is already booted. |
@tracer0tong Which version of Docker are you using to run the image on Windows 7 ? "Docker Toolbox" or "Docker for Windows" ? |
@drywolf I'm using Kitematic, hope this project still alive. This is Oracle Virtual Box VM with Linux and Docker inside. |
Ok maybe using a VirtualBox based docker engine works arround this issue (I am using the "Docker for Windows" engine). I have investigated this issue more deeply, and it seems that officially running the Android emulator in a virtualized environment (Docker, VMs, ...) has been dropped at some point (see https://developer.android.com/studio/run/emulator-acceleration.html#extensions) I have tried several ways and multiple workarrounds to get the most current emulator + x86 android image versions running in docker, but to no avail (yet).
There are now just one or two ideas left that I want to try, but if it does not work out I will just stick with the old version of the SDK + emulator images (r19) to have a real cross-platform way to run the x86 emulator. @tracer0tong in your docker Windows 7 environment, could you please try and install the cpu-checker and let me know what you get when you run I am getting the following, which pretty much confirms what the latest Android emulator also tells:
|
I have the same issue. |
Last time I have tested container from Dockerhub, I think I should try to rebuild it to see how it works. If you don't need newest API versions, you can try to use the same container. |
I think the new API has to run on a main machine with CPU hardware acceleration. I spotted another docker, running:
For more info see readme I'm not on my machine, but will try it later on Arch or Ubuntu. With kvm-ok you can check if your machine setup is OK. @drywolf After that, we can try to make it work running the container with commands like this
OR
*** Update *** I enabled Virtualization in my Bios |
@zoutepopcorn I will appreciate, if you can make pull request. Currently I'm not involved in Android development, but as I can see, many people using that project as template. |
If I have some time, look if I can edit the readme after we found out, whats working ... I'm also trying to implement an webcam on this docker first |
I just encountered this problem I am using the android emulator for flutter |
No description provided.
The text was updated successfully, but these errors were encountered: