[英]Why my android emulator is not working in vs code?
Why my emolator is not working in vs code为什么我的 emolator 在 vs code 中不工作
I try npx start and npx run android but it still not working我尝试 npx start 和 npx run android 但它仍然无法正常工作
You need to set你需要设置
Configure the ANDROID_SDK_ROOT environment variable配置 ANDROID_SDK_ROOT 环境变量
macOS:苹果系统:
Add the following lines to your $HOME/.bash_profile
or $HOME/.bashrc
(if you are using zsh then ~/.zprofile
or ~/.zshrc
) config file:将以下行添加到您的
$HOME/.bash_profile
或$HOME/.bashrc
(如果您使用的是 zsh,则~/.zprofile
或~/.zshrc
/.zshrc )配置文件:
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
windows: windows:
Reference:参考:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.