Closed bonrg closed 1 month ago
You have to add this two Lines in your Dockerfile.
RUN yes Y | sdkmanager --licenses RUN yes Y | sdkmanager --verbose --no_https ${ANDROID_SDK_PACKAGES} RUN yes Y | sdkmanager --channel=3 emulator
ARG EMULATOR_NAME="nexus" ARG EMULATOR_DEVICE="Nexus 6" ENV EMULATOR_NAME=$EMULATOR_NAME ENV DEVICE_NAME=$EMULATOR_DEVICE ENV EMULATOR_PACKAGE=$EMULATOR_PACKAGE RUN echo "no" | avdmanager --verbose create avd --force --name "${EMULATOR_NAME}" --device "${EMULATOR_DEVICE}" --package "${EMULATOR_PACKAGE}"
@bonrg Should be working now, could you try again ?
Kindly open another ticket if the issue still persists
docker compose up -d
[=======================================] 100% Fetch remote repository...
0 1.189 Auto-selecting single ABI x86_64
0 1.566 Error: "emulator" package must be installed!
0 1.566 null
failed to solve: process "/bin/bash -c echo \"no\" | avdmanager --verbose create avd --force --name \"${EMULATOR_NAME}\" --device \"${EMULATOR_DEVICE}\" --package \"${EMULATOR_PACKAGE}\"" did not complete successfully: exit code: 1