Brendon Shaw
Lurker
I have installed Android Studio 3.3.2 on my Macbook (MoJave 10.14.3), but cannot get the AVD device emulator to work with the following error:
I found the Pixel_XL_API_28.ini and Pixel_XL_API_28.avd in the "/private/var/root/.android/avd" folder and the following paths have been added to bash_profile (as below)
I receive the following error message:
Is there any way to fix this problem or change the directory to point to somewhere else to find the appropriate files?
06:43 Emulator: emulator: ERROR: Unknown AVD name [Pixel_XL_API_28], use -list-avds to see valid list.
06:43 Emulator: Process finished with exit code 1
06:43 Emulator: Process finished with exit code 1
I found the Pixel_XL_API_28.ini and Pixel_XL_API_28.avd in the "/private/var/root/.android/avd" folder and the following paths have been added to bash_profile (as below)
export ANDROID_HOME=/Users/brendonshaw/
export ANDROID_SDK_ROOT=/Users/brendonshaw/Library/Android/sdk
export ANDROID_SDK_HOME=/Users/brendonshaw/Library/Android/sdk
export ANDROID_AVD_HOME=/private/var/root/.android/avd
export PATH=${PATH}:$ANDROID_HOME:$ANDROID_HOME:$ANDROID_AVD_HOME:$ANDROID_SDK_ROOT:$ANROID_SDK_HOME
If I run the emulator from the command lineexport ANDROID_SDK_ROOT=/Users/brendonshaw/Library/Android/sdk
export ANDROID_SDK_HOME=/Users/brendonshaw/Library/Android/sdk
export ANDROID_AVD_HOME=/private/var/root/.android/avd
export PATH=${PATH}:$ANDROID_HOME:$ANDROID_HOME:$ANDROID_AVD_HOME:$ANDROID_SDK_ROOT:$ANROID_SDK_HOME
./emulator -avd Pixel_XL_API_28.ini --target="AVD name"
I receive the following error message:
emulator: ERROR: Unknown AVD name [Pixel_XL_API_28.ini], use -list-avds to see valid list.
ANDROID_AVD_HOME is defined but there is no file Pixel_XL_API_28.ini.ini in $ANDROID_AVD_HOME
(Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)
ANDROID_AVD_HOME is defined but there is no file Pixel_XL_API_28.ini.ini in $ANDROID_AVD_HOME
(Note: Directories are searched in the order $ANDROID_AVD_HOME, $ANDROID_SDK_HOME/avd and $HOME/.android/avd)
Is there any way to fix this problem or change the directory to point to somewhere else to find the appropriate files?