android studio simulator connected to the lightning simulator [AS]

⭐ my website: www.mengyingjie.com ⭐

Android studio how it is connected Andrews simulator, you can follow the steps below
(to lightning simulator, for example, other simulators similar)

First, download the simulator

Download After installing lightning simulator, open and enter the following page
Lightning simulator tables

Second, the simulator into the developer options, check the usb debugging

Click Desktop System -> Open Settings -> About tablet -> 5 times in a row click on the version number will appear Developer options -> to enter the Developer options -> check usb debugging.
Set Developer options

Third, the simulator and connected android studio

Press win + r, enter cmd to open a command controller, change the directory to the file that you install lightning simulator folder, I installed the simulator directory as follows:

Y:\>cd y:\Changzhi\dnplayer2

Enter the directory simulator
Next, adb lightning simulator may be connected to the port (5555 + index * 2) (index> = 0) i.e. 5555,5557,5559 like (other simulators see below)

y:\Changzhi\dnplayer2>adb.exe connect 127.0.0.1:5555  

connection succeeded

Here is very important, different simulator corresponding port, other ports see the simulator:

Yagami simulator: adb connect 127.0.0.1:62001
Happy Android emulator: adb connect 127.0.0.1:21503
every day Simulator: adb connect 127.0.0.1:6555
hippocampus play emulator: adb connect 127.0.0.1:53001
Netease MUMU simulation device: adb connect 127.0.0.1:7555

Fourth, open android studio

Five, run Android studio project

After completion of the above instruction execution, our android studio run up inside the sample code, you will receive information connected to the simulator, click ok

and then will appear the following message box

on the left button to install a local simulator, but local simulator start slow and take up memory. We chose the right button, you can see our example, run up in lightning simulator.


At this point, the connection is completed.

I encountered such problems, but read the article unresolved, comments, or add QQ: 781378815

Guess you like

Origin www.cnblogs.com/mengyingjie/p/11578709.html