Flutter develops Android Studio to install third-party emulators - Netease MuMu

content

1. Configure the adb command

 2. adb connects to NetEase MuMu simulator

3. Solve the problem that the mumu simulator adb cannot be recognized


The last article introduced the environment configuration for Flutter development, but my 6-year-old Mac computer is still a bit difficult to run Android Studio! Opening some configuration windows are stuck, and there is no response for a long time. For example, clicking the "Cancel", "Next" and other buttons does not respond, basically it is stuck, and it takes a long time to respond, a little dementia, haha ​​😢, anyway, it is very uncomfortable, old is uncomfortable, click "Next" "Operating the button, waiting for five minutes to respond is fast.

what! ! ! ! ! ! Oh my god! ! ! O earth! ! ! Save the child 😢 [tears]

In fact, Android Studio can also use the iOS simulator

If you have to use an Android emulator, you can also use Android Studio to configure the Android emulator. You can read my previous article on flutter Apple Mac computer environment configuration , which describes the specific steps to install and configure the Android emulator.

This article mainly talks about how to install third-party emulators, mainly for people who are relatively stuck on Mac computers. Take NetEase Simulator MuMu as an example

The NetEase simulator MuMu download address is the same as the usual installation of .dmg files. The specific installation steps will not be posted. The installation is completed as follows

 

1. Configure the adb command

To display in the simulator list, some configuration is required, but the adb command needs to be configured

1. Open the terminal, enter: cd ~/ to enter the user directory;
2. Enter: touch .bash_profile, if this file does not currently exist, it will be created by default;
3. Enter: open .bash_profile, if it is created for the first time, the default 4. Enter: export ANDROID_HOME=/Users/ liuyuhang
/Library/Android/sdk, where export ANDROID_HOME=your Android sdk path

Open Android studio under your Mac, click "SDK Manager" in the toolbar, and the following page will appear, copy the address and replace it

 5. Input: export PATH=${PATH}:${ANDROID_HOME}/tools
 6. Input: export PATH=${PATH}:${ANDROID_HOME}/platform-tools

 7. Enter source .bash_profile to make the changes take effect

At this time, there is no prompt when entering adb again: adb: command not found, which means that the environment configuration is successful.

 2. adb connects to NetEase MuMu simulator

adb connect 127.0.0.1:7555

Open the MuMu emulator, adb devices can't recognize it. It keeps showing list of devices attached

3. Solve the problem that the mumu simulator adb cannot be recognized

1. Need to add Vendor ID/Vender ID in ~/.android/adb_usb.ini file

2. Enter in the terminal: system_profiler SPUSBDataType

3. Modify the adb_usb.ini file

vi ~/.android/adb_usb.ini Add the Vendor ID in the screenshot just now, :wq save and exit

4. Restart adb

 shutdown: adb kill-server

Start: adb start-server

5. Execute adb devices again

Now open the command adb devices to check, there is an emulator

 Open Android Studio and look in the list of emulators. The emulator of MuMu has already appeared.

So far, adding a third-party emulator is done! 😁 You can start building the project and test it.

 

🌹Welcome everyone to leave a message to exchange, criticize and correct, and learn from each other😁🌹

 

 

 

 

Tags: Flutter develops Android Studio to install third-party emulators - Netease MuMu

Flutter NetEase simulator MuMu EmulatorMuMu Flutter runs on a third-party emulator

Related: Flutter develops Android Studio to install third-party emulators - Netease MuMu