mirror of
https://github.com/budtmo/docker-android.git
synced 2026-04-25 20:25:57 +03:00
[GH-ISSUE #46] Outdated emulator in image with Android version 5.1.1 #36
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/docker-android#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SvetA95 on GitHub (Nov 13, 2017).
Original GitHub issue: https://github.com/budtmo/docker-android/issues/46
How can I resolve this?
@budtmo commented on GitHub (Nov 13, 2017):
Hi @SvetA95 ,
Thank you for the issue. Could you more specific what do you mean with outdated emulator? and is it arm or x86 image?
@SvetA95 commented on GitHub (Nov 13, 2017):
Hi
I'm using your image to automate tests for Android. Today the test ran I got an error saying: Original error: Could not find a connected Android device.
After that I went inside the container and tried to start the emulator manually and got:
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
[140245043508992]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.
Your emulator is out of date, please update by launching Android Studio:
[140245120202496]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.
@budtmo commented on GitHub (Nov 13, 2017):
Thank you, I will check it later. is it x86 or arm image? @SvetA95
@SvetA95 commented on GitHub (Nov 13, 2017):
Yes x86, butomo1989/docker-android-x86-5.1.1
@budtmo commented on GitHub (Nov 15, 2017):
Hi @SvetA95 ,
I cannot reproduce the error. I just checked it and it works fine with x86 image for version 5.1.1? my command was
docker run --privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" --name android-container butomo1989/docker-android-x86-5.1.1. Could you tell me how you run the container?@SvetA95 commented on GitHub (Nov 15, 2017):
Hi @butomo1989
I'm using a docker-compose file with the following container configs:
android:
build:
context: docker/android
dockerfile: Dockerfile
privileged: true
volumes:
- ./tests:/usr/src/MRA_Android_App/tests
links:
- "db:database"
- "server"
ports:
- "4723:4723"
- "5554:5554"
- "5555:5555"
privileged: true
tty: true
environment:
- DEVICE=Nexus 7
- APPIUM=true
container_name: android_appium_tests
Dockerfile:
FROM butomo1989/docker-android-x86-5.1.1
WORKDIR /usr/src/MRA_Android_App
COPY supervisord.conf /usr/src/MRA_Android_App
install php
RUN apt-get update && apt-get install -y
php7.0
php7.0-bcmath
php7.0-cli
php7.0-common
php7.0-fpm
php7.0-gd
php7.0-gmp
php7.0-intl
php7.0-json
php7.0-mbstring
php7.0-mcrypt
php7.0-mysqlnd
php7.0-pdo
php7.0-xml
php7.0-curl
php7.0-zip
php7.0-dev
x11vnc
telnet
expect
supervisor
Install composer
COPY composer.json /usr/src/MRA_Android_App
COPY install_Composer.sh /usr/src/MRA_Android_App
RUN chmod +x /usr/src/MRA_Android_App/install_Composer.sh
RUN /usr/src/MRA_Android_App/install_Composer.sh
COPY emulator_Auth_Token.sh /usr/src/MRA_Android_App
RUN chmod +x /usr/src/MRA_Android_App/emulator_Auth_Token.sh
I am also able to start the container normally. The problem is when I go inside and try to start the emulator with command "emulator @device_name". Then I received the error mentioned in the previous post:
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
[140245043508992]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.
Your emulator is out of date, please update by launching Android Studio:
[140245120202496]:WARNING:./android/base/files/IniFile.cpp:158:Failed to process .ini file /root/.android/emu-update-last-check.ini for reading.
@budtmo commented on GitHub (Nov 15, 2017):
Hi @SvetA95 ,
It looks like you extend the existing docker image that I provide. maybe we can discuss in https://gitter.im/butomo1989/docker-android so I can help you and I can close this issue. :)
@SvetA95 commented on GitHub (Nov 15, 2017):
Sure, but the fact that I have extended the image shouldn't matter right? The emulator comes from your docker image and me installing php inside the container along side it, shouldn't have anything to do with the error I'm getting
@budtmo commented on GitHub (Nov 15, 2017):
hm.. Could you run the original docker image that I provide? does it work in your machine? if yes, I assume there is misconfiguration in the Dockerfile where you extend the functionalities from the original image. if not, please provide the logs.
@budtmo commented on GitHub (Nov 15, 2017):
the logs could be found in /var/log/supervisor/ inside container @SvetA95
@SvetA95 commented on GitHub (Nov 15, 2017):
It worked in the base image, thanks. I'll try and figure out what's wrong with my setup. Closing the issue,
@budtmo commented on GitHub (Nov 15, 2017):
Let me know if you need any help. we can discuss it through bitter @SvetA95