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

macOS: Android add emulator #42

Open
vovs03 opened this issue Apr 2, 2024 · 0 comments
Open

macOS: Android add emulator #42

vovs03 opened this issue Apr 2, 2024 · 0 comments
Assignees

Comments

@vovs03
Copy link
Owner

vovs03 commented Apr 2, 2024

macOS: Android add emulator

Цель: разобраться как запускать Андроид эмулятор из терминала

  1. Читаю https://hdorgeval.gitbooks.io/setup-your-mac-to-develop-nativescript-apps/content/setup-android-emulator-on-mac-os-x.html
  2. How to start Android Emulator from Terminal?
  • $ANDROID_HOME/tools/emulator -netdelay none -netspeed full -avd Nexus_5_API_25
PANIC: Unknown AVD name [Nexus_5_API_25], use -list-avds to see valid list.
HOME is defined but there is no file Nexus_5_API_25.ini in $HOME/.android/avd
(Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd, and $HOME/.android/avd)

Т.к. нет установленного такого эмулятора, и в ПАНИК-тексте предложено Как посмотреть список установленных эмуляторов

  1. run: $ANDROID_HOME/tools/emulator -list-avds
Pixel_2_API_30
Pixel_3_API_29
Pixel_3a_API_30_x86
flutter_emulator
flutter_emulator_2
flutter_emulator_3
  1. run $ANDROID_HOME/tools/emulator -netdelay none -netspeed full -avd Pixel_2_API_30
PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/usr/local/share/android-sdk]!

    • 🔥brew uninstall --cask android-sdk

Эмулятор стартанул (но только через андроид-студио)

Add to ~/.zshrc

export $ANDROID_HOME="/Users/$USER/Library/Android/sdk"
export ANDROID_SDK_ROOT=$ANDROID_HOME
  1. 6️⃣ 🔥 pocket_coach > $ emulator -avd Pixel_7_API_TiramisuPrivacySandbox

Снимок экрана 2024-04-02 в 16 46 17

@vovs03 vovs03 self-assigned this Jul 2, 2024
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