Skip to content

AVD home resolving is inconsistent with Android AVDManager #324

@xlinxie

Description

@xlinxie

Version:

1.7.2

Description:

When running

npx native-run android --list

Connected Devices:

  No connected devices found

Virtual Devices:

  Name             API      Target ID
  ----------------------------------------
  Pixel 4 API 33   API 33   Pixel_4_API_33
avdmanager list avd

Available Android Virtual Devices:
    Name: Pixel_4_API_33
  Device: pixel_4 (Google)
    Path: D:\AppData\.android\avd\Pixel_4_API_33.avd
  Target: Google APIs (Google Inc.)
          Based on: Android 13.0 (Tiramisu) Tag/ABI: google_apis/x86_64
    Skin: pixel_4
  Sdcard: 512M
---------
    Name: Pixel_6_API_33
  Device: pixel_6 (Google)
    Path: D:\AppData\.android\avd\Pixel_6_API_33.avd
  Target: Google APIs (Google Inc.)
          Based on: Android 13.0 (Tiramisu) Tag/ABI: google_apis/x86_64
    Skin: pixel_6
  Sdcard: 512M
emulator -list-avds

Pixel_4_API_33
Pixel_6_API_33

according to https://developer.android.com/studio/command-line/variables, the right order for emulator home folder should be

  • $ANDROID_EMULATOR_HOME
  • $ANDROID_USER_HOME
  • $ANDROID_SDK_HOME/.android
  • $HOME/.android

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions