How to use android studio or eclipse and emulator development
Commonly used simulators: night god, hippocampus, memu
After the installation of Hippocampus is completed, you cannot directly connect to eclipse, but if you connect to the night god in the following way, close the night god simulator, and then open the hippocampus to automatically connect. There should be a direct connection method. I don't understand
Night God needs to be set up to connect to eclipse
I believe that many android developers will encounter such problems
1. Mobile phones with different resolutions are required, and the cost is very high.
2. The USB cable is unstable, it is always easy to disconnect and reconnect
Then, please use the night god simulator to assist development, which is efficient and stable.
Intellij idea and eclipse are also applicable
method/step
-
Create your own project through android studio, the specific steps will not be discussed, please see the link for details:
http://jingyan.baidu.com/article/a65957f4f1b4c724e67f9bc9.html
-
Download and install the night god simulator, the night god simulation organ network download www.bignox.com
-
Start the night god simulator first
Then run the cmd command, cd to the night god installation directory, execute the command
Under the window:
nox_adb.exe connect 127.0.0.1:62001
Under Mac, enter the package body contents -> MacOS to execute:
adb connect 127.0.0.1:62001
connect to emulator
-
Through the new project in the first step, configure it according to the following figure, and start the debug
-
The simulator selection box pops up. After OK, we can view and single-step debugging.
-
Rendering 1
-
Effect 2
-
How to set the simulation rate
END
Precautions
-
If you can't see the night god simulator in the fifth step, please restart the night god simulator after adb
-
intellij idea eclipse also works