toroxx / vscode-avdmanager

Android Virtual Device Manager for VSCode
MIT License
17 stars 6 forks source link

The path after avd is created is not the path I specified #6

Closed oomeow closed 1 year ago

oomeow commented 1 year ago

The path after avd is created is not the path I specified

Platform:Ubuntu 22.04.2 LTS

I've set the relevant environment variables ( At last, $USER has replace my username ):

export ANDROID_HOME=/home/$USER/android/sdk
export ANDROID_AVD_HOME=/home/$USER/android/avd
export PATH=${ANDROID_HOME}/cmdline-tools/latest/bin:${ANDROID_HOME}/emulator:${ANDROID_HOME}/platform-tools:$PATH

When I create an avd using with this plugin, the path is "~/.android/avd" But When I create an avd using the "avdmanager" command in the ubuntu terminal, the path is specified by an environment variable ( /home/$USER/android/avd )

toroxx commented 1 year ago

You can check the AVD config in the output screen to confirm the SDK path settings.

Below is the sample in VSCode 螢幕擷取畫面 2023-06-27 005231

oomeow commented 1 year ago

I've checked that the settings are no problem. image

The path of the AVD created in the plugin is different from the path created in the terminal. image

toroxx commented 1 year ago

Thanks for your message. I have updated the tools. The ANDROID_AVD_HOME support started in v1.3.0.

The new AVD Home can be set in User/Workspace settings. You can assign the AVD Home path (by project) without touching the ANDROID_AVD_HOME. 螢幕擷取畫面 2023-06-27 183701