Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emulator update issue #86

Closed
NitayRabi opened this issue May 2, 2022 · 1 comment
Closed

Emulator update issue #86

NitayRabi opened this issue May 2, 2022 · 1 comment

Comments

@NitayRabi
Copy link

NitayRabi commented May 2, 2022

The issue

Running into kind of a dead lock with emulators, I read most of the related issues, for example:

#18
#58

I can't use ARM64 or X86 or X64 emulators (unsupported)

But when I'm using any emulator using armeabi-v7a, I keep getting an update error message (and the emulator's not starting)

INFO    | Your emulator is out of date, please update by launching Android Studio:
 - Start Android Studio
 - Select menu "Tools > Android > SDK Manager"
 - Click "SDK Tools" tab
 - Check "Android Emulator" checkbox
 - Click "OK"

Tried running sdkmanager --update after installing the emulator, but it did not help.

Environment

Using mingc/android-build-box:latest in Bitbucket pipelines

Script -

export ADB_INSTALL_TIMEOUT=30

# Preprations
npm i -g envinfo detox-cli && envinfo
echo fs.inotify.max_user_watches=524288 | tee -a /etc/sysctl.conf && sysctl -p
# Create repositories if repositories.cfg file doest not exists.
touch /opt/android-sdk/.android/repositories.cfg

# Insall and run emulator
echo yes | sdkmanager --install --channel=0 --verbose "system-images;android-25;google_apis;armeabi-v7a"
echo yes | sdkmanager --licenses

echo no | avdmanager --verbose create avd --force --name "release-mu" --package "system-images;android-25;google_apis;armeabi-v7a" -c 200M
emulator -avd release-mu -no-audio -no-window -no-boot-anim -gpu off -wipe-data -partition-size 1024 &

adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done; input keyevent 82'

echo "Emulator is ready"

sleep 180

# .... .... ....
@NitayRabi
Copy link
Author

Was able to get the emulator running by adding -

rm -rf $ANDROID_HOME/emulator

sdkmanager "emulator" --channel=3

Prior to running it. it uses the canary build of the emulator so it might be somewhat unstable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant