简体   繁体   English

为什么我的 android 模拟器不能在 vs code 中运行?

[英]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:参考:

Environment SetUp环境设置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的 android 工作室模拟器不工作? - Why my android studio emulator is not working? 为什么android模拟器不工作 - why android emulator not working 为什么 React Native Picker 在我的 Android 模拟器中不起作用? - Why is the React Native Picker not working in my Android emulator? 为什么我的应用程序在我的 android 仿真器上运行良好,但在我的真实 android 设备上运行不正常 - Why my app is working fine on my android emulator but its not working fine on my real android device 我的Android模拟器无法正常工作 - My android emulator isnt working Android:SurfaceView 在我的模拟器中不起作用? - Android : SurfaceView in not working in my Emulator? 为什么android studio 没有为我的flutter 代码显示虚拟android 模拟器,而为java android 代码显示它? - Why is android studio not showing virtual android emulator for my flutter code, whereas its showing for java android code? 在VS中打开程序时,Android Emulator不起作用 - Android Emulator not working when opening programs in VS 为什么Alpha动画无法在我的Android代码中正常工作? - Why alpha animation not working in my android code? 我的Android应用程序正在模拟器上运行,但在android设备上却无法运行 - My Android App is working on the emulator but not on the android device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM