This article has participated in the “Digitalstar Project” and won a creative gift package to challenge the creative incentive money.

📝 [Flutter] learning to form a record, [programmer essential knowledge]

📔 Today’s trivia — Android Studio installs third-party emulators — netease MuMu

directory

1. Configure the ADB command

2. Adb connects to the netease MuMu simulator

3. Solve mumu simulator ADB recognition problem


1. Write at the front

The last article covered the configuration of the Flutter development environment, but running Android Studio on my six-year-old Mac was still a bit of a struggle. Open some configuration Windows are stuck, there is no response for a long time. For example, click “cancel”, “next” and other buttons have no response, the basic is stuck, after a long time to respond, a little senile dementia, ha ha 😢, anyway, it is very uncomfortable, old uncomfortable, point “next” operation button, wait for five minutes to come over the reaction is fast.

Ah !!!!!! My God!! Earth!! Save the children 😢[Tears]

Android Studio can also use the iOS emulator

If you have to use an Android emulator, you can also use Android Studio to configure the Android emulator. Check out my previous article about the Environment configuration of Flutter for Apple Mac, which describes how to install and configure the Android emulator.

This article is mainly about how to install third-party emulators, mainly for the MAC comparison card crowd. Take the netease simulator MuMu as an example

The download address of netease simulator MuMu is the same as that of installing. DMG file, the specific installation steps will not be posted, the installation is finished as follows

2. Configure the ADB command

To appear in the emulator list, you need some configuration, but you need to configure the ADB command

1. Open the terminal and enter CD ~/ to go to the user directory. 2. Enter: touch.bash_profile. If the file does not exist, it will be created by default. 3. Enter open. bash_profile. If it is created for the first time, the file is blank by default. 4. Input: export ANDROID_HOME = / Users/liuyuhang/Library/Android SDK, the export ANDROID_HOME = your path to the Android SDK

Open Android Studio on your Mac and click “SDK Manager” in the toolbar to see the following page. Just copy the address and replace it

5. Enter export PATH=${PATH}:${ANDROID_HOME}/tools 6. Input: the export PATH = ${PATH} : ${ANDROID_HOME} / platform – the tools

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

Adb: Command not found adb: Command not found

3. Adb connects to the netease MuMu simulator

The adb connect 127.0.0.1:7555

Adb Devices cannot identify MuMu emulator. Always display list of Devices Attached

4. Resolve mumu simulator ADB recognition problem

1. Add the vendor ID and Vender ID to the ~/. Android/adb_USb. ini file

2. On the terminal, enter system_profiler SPUSBDataType

3. Modify the adb_USb. ini file

Vi ~/.android/ adb_USb. ini Add the Vendor ID in the screenshot and run the :wq command to save the configuration and exit

4. Restart adb

Disable: ADB kill-server

Enable: ADB start-server

5. Execute ADB Devices again

Now open with adb Devices to view the emulator

Open Android Studio and look at the emulator list. MuMu’s emulator already appears

Add a third party emulator and you’re done! 😁 can start to build the project, test use.

5. Write in the back

Follow me, more content continues to output

  • CSDN
  • The Denver nuggets
  • Jane’s book

🌹 if you like, give it a thumbs up 👍🌹

🌹 feel harvest, can come to a wave of collection + attention, so as not to find you next time I 😁🌹

🌹 welcome everyone to leave a message exchange, criticism and correction, forwarding please indicate the source, thank you for your support! 🌹