# install Android simulator

  • The following action steps apply to Windows Systems and Mac system
  • This article applies to the adoption of Android Studio To install Android Developers can choose other ways to install Android simulator

# 1. Download Android Studio

  • to download Android Studio.
  • The current latest version is: android-studio-2021. 3. 1. 17 (2022-12-21). If the chip of the notebook is Apple M1 Pro Then download Mac with Apple chip, Instead Download Mac with Intel chipDevelopers need to download the appropriate version according to the actual situation of the system
  • Click Install, select when installing Custom Option, not selected Standard
  • Make sure the following items are selected:Android SDKAndroid SDK PlatformAndroid Virtual Device

# 2. Create a simulator

  • As shown below, click on the top right corner of thesimulatorIcon, click on theCreate device
  • Get intoVirtual Device ConfigurationAfter the panel, follow the instructions to complete the configuration, you can successfully create the simulator

<img width="800" alt="image" src="https://github.com/yujon /ipa-mac-builder/assets/16963584/2f4804a9-9701-42ec-9333-d0ca5f50bde6 >

<img width="800" alt="image" src="https://github.com/yujon /ipa-mac-builder/assets/16963584/f7123886-b660-4e2d-aadf-cac0e548ffdb >

# 3. Configure Environment Variables

After installation Need to configure the corresponding environment variables

    1. Before configuring the environment, you can turn on terminal input executable echo $SHELL Determine Local shell Version, which selects the corresponding environment variable way, such as the following bash or zsh
    1. implement open -e /.bash_profile, or open -e /.zshrc Open the corresponding configuration file (if you find that the file does not exist at the time of execution, you can use the touch /.bash_profile or touch /.zshrc Newly opened)
    1. Add to ANDROID_HOME And other relevant environment variables, such as the following (how to view Android SDK The installation path (i.e. ANDROID_HOME Of the path), you can view the[Frequently Asked Questions](./mac.md#percent E5%9B%9B%E3%80%81%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98))
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
    1. Execute orders source /.bash_profile or source /.zshrc Make the configuration effective
    1. Verify that the configuration is successful, open the terminal, and enterecho $ANDROID_HOME, View Effect

Note: Fixing environment variables requires restarting the Weixin DevTools project