You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr: On my system, the avd folder is in $HOME/.config/.android, not $HOME/.android, and that causes it to fail. Symlinking fixed it.
I am new to nativescript and android development, and after following the instructions for the plain typescript quick start, I couldn't get it to work because it couldn't find any emulators (they were correctly installed). It turns out that the emulator tool in android studio is looking for its avds in $HOME/.android/avd, but on my Manjaro Linux system the avd is in $HOME/.config/.android/avd. I symlinked the true location to the expected location and the demo app launches and runs now.
I discovered this by bumbling around trying to manually launch the emulator from the command line using the $ANDROID_HOME/emulator/emulator tool, which had enough error output that it gave me a clue. Looking up the actual path in Studio showed that it was storing avds in a different place from where it was looking for them.
I wasn't sure where to post this; it doesn't seem to be a nativescript issue at all, but it was stopping me from using nativescript so I thought I'd mention it here. There are questions about it all over the Internet and I have no idea if this is the same problem that others are having. However, if everything seems to be set up right and you still can't get the emulator to launch, make sure the avd directory is reachable from $HOME/.android/avd.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
tl;dr: On my system, the avd folder is in
$HOME/.config/.android
, not$HOME/.android
, and that causes it to fail. Symlinking fixed it.I am new to nativescript and android development, and after following the instructions for the plain typescript quick start, I couldn't get it to work because it couldn't find any emulators (they were correctly installed). It turns out that the
emulator
tool in android studio is looking for its avds in$HOME/.android/avd
, but on my Manjaro Linux system the avd is in$HOME/.config/.android/avd
. I symlinked the true location to the expected location and the demo app launches and runs now.I discovered this by bumbling around trying to manually launch the emulator from the command line using the
$ANDROID_HOME/emulator/emulator
tool, which had enough error output that it gave me a clue. Looking up the actual path in Studio showed that it was storing avds in a different place from where it was looking for them.I wasn't sure where to post this; it doesn't seem to be a nativescript issue at all, but it was stopping me from using nativescript so I thought I'd mention it here. There are questions about it all over the Internet and I have no idea if this is the same problem that others are having. However, if everything seems to be set up right and you still can't get the emulator to launch, make sure the avd directory is reachable from
$HOME/.android/avd
.Beta Was this translation helpful? Give feedback.
All reactions