Mumu simulator port

On a Mac system, the simulator uses port 22471. On Windows, the emulator uses port 7555.Copy the code

Simulator connection

You can connect to the emulator using the ADB command in the Terminal tool of Android Studio.Copy the code

Enter ADB connect 127.0.0.1: port number to connect. If you are prompted that the ADB command cannot be executed, check that the environment variable is configured. You can configure ADB environment variables based on your system queries. If the connection fails, run the ADB kill-server command to stop the ADB service, and then run the ADB start-server command to start the server. After the connection is successful, you can view the connection status through the ADB Devices command.Copy the code