budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.56k stars 1.27k forks source link

android project build failed #347

Closed AlbertShen0211 closed 1 year ago

AlbertShen0211 commented 1 year ago

šŸ› 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

BUILD FAILED in 5m 23s

remi0s commented 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

budtmo commented 1 year ago

I will close the ticket as the latest docker image contains java-11. feel free to reopen it if needed.

remi0s commented 1 year ago

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