ionic-team / ionic-team/native-run

AVD home resolving is inconsistent with Android AVDManager

Open
#324 0 comments 0 reactions 0 assignees View on GitHub
android
Dominant language
TypeScript
Stars
137
Forks
28
PR merge metrics
No merged PRs in 30d

Description

**Version:**

1.7.2

**Description:**

When running

```shell
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
```

```shell
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
```

```shell
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.