Open yoyole123 opened 3 years ago
Ok, I have a solution! For some reason, the container runs the emulator using flags and a "@" sign that causes it to crash on my machine. I made edits to app.py (the section after line 227) and after re-building the image, it works for me:
if is_first_run:
logger.info('Emulator was not previously initialized. Preparing a new one...')
cmd = 'emulator/emulator {name} -wipe-data {custom_args}'.format(name=avd_name, custom_args=custom_args)
else:
logger.info('Using previously initialized AVD...')
cmd = 'emulator/emulator {name} {custom_args}'.format(name=avd_name, custom_args=custom_args)
Having the same issue on fedora 35, ima try your fix
🐛 Bug Report
Operating System: fedora 30, 64 bit
Docker Image: budtmo/docker-android-x86-7.1.1
Docker Version:
19.03.12
Docker Command to start docker-android:
sudo docker run --privileged -p 6080:6080 -p 5555:5555 -p 5554:5554 -p 4723:4723 -e DEVICE="Samsung Galaxy S9" --name android-container docker-android
Expected Behavior
GUI is displayed in noVNC at localhost:6080
Actual Behavior
The emulator crashes shortly after running the container. The phone screen shows up for a second in localhost:6080 but immediatly shuts down.
More Details:
I have read every relevant issue on this page, with emphesis on the famous issue 93, and tried every relevant solution - with no success. I also have another Fedora 30 machine which runs docker-android with the same command and settings with no issues. I have tried to check virtualization - it is supported and activated.
EDIT - A solution:
I have found a solution which works on my system. Details can be found in a comment I left, here.