Closed AlbertShen0211 closed 1 year ago
We are experiencing the same problem. Additionally, we have tried to download JDK 11 while running the docker image but then the emulators did not have playstore and as such were recognized as rooted devices.
script {
docker.image('budtmo/docker-android-x86-8.1').withRun('--privileged -d -p 6080:6080 -p 5554:5554 -p 5555:5555 -e DEVICE="Nexus 5"') { c ->
sh "docker logs ${c.id}"
docker.image('budtmo/docker-android-x86-8.1').inside("-u root --net=host") {
sh """
apt-get update
apt-get install -y openjdk-11-jdk
ls /usr/lib/jvm
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64/
./gradlew connectedDebugAndroidTest
"""
}
}
}
Is there any docker image available containing jdk11 and emulator containing play store?
Thank you, Rafail
I will close the ticket as the latest docker image contains java-11. feel free to reopen it if needed.
I will close the ticket as the latest docker image contains java-11. feel free to reopen it if needed.
Was any emulator which contains playstore also added? Is it possible somehow? Thank you
š Bug Report
Operating System: MacBook Pro 11.6 (20G165)
Docker Image: budtmo/docker-android-genymotion
Docker Version:
4.8.1 (78998)
Docker-compose version (Only if you use it):
1.29.2
Docker Command to start docker-android:
Expected Behavior
Build successful Support jdk 11
Actual Behavior
Build file '/tmp/app/build.gradle' line: 1
What went wrong: A problem occurred evaluating project ':app'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 5m 23s