Related software
JAVA JDK
Android Studio
HAXM
installation of JDK and settings for Java environment variables
1, jdk:http://www.oracle.com/technetwork/java/javase/downloads/index.html
the full name of the JDK is: the Java Development Kit JDK is the core of the entire Java
2, JDK installation Direct "Next" operation can, after the installation is complete, go to your system environment variables, check if there is java_home system variable name, the corresponding value, if not, create the corresponding key value
3. You can enter java-version in the cmd command if the corresponding Java version number appears, your JDK environment is already installed.
install android Studio
1,: http://developer.android.com/sdk/installing/studio.html
2, install Android Studio, in front we have installed the JDK, so during the installation process, he will automatically go to find the path of the JDK, "Next" Operation is ok!
3. Android Studio Environment Configuration
Android Studio is built specifically for Android, with a lot less configuration than eclipse, but not a bit of configuration, open Android Studio, there will be a welcome page when initializing ,
3, 1 click "Configure", will go to the configuration file, here we want to see the Android SDK and Java JDK path is correct,
the path of the Android SDK and Android Studio under the same root directory
3.2 Creating an app project
The first picture is the directory structure of Android Studio, the second picture is the Eclipse directory structure, the overall structure of the difference is still a bit large, here may be asked, I created with Eclipse project, whether it can be in the Android Development in Studio? This is sure to be possible, this will be discussed in the next section
Installing the HAXM simulator
I'm here to download this haxm-windows_r05.
run the "Intelhaxm.exe" in the compression package directly, if you can succeed with "Next", congratulations.
when I installed, I was prompted not to turn on Vt-x,
Here I first provide the blog park's @3h approach
http://www.cnblogs.com/shortboy/archive/2013/03/11/2953610.html
on the Internet I find the relevant information, some people say it is because Hyper-V (my system is win 8.1), go to the program management platform to see, found that really turned on hyper-V, should be installed before Visual studio Android Development simulator when opened, here to remove Hyper-V, and then, confirm, shut down the function, the system prompts to restart, here must restart, or HAXM is not installed.
after the restart, before the trip to the installation operation, all the way to sing, the heart is much more comfortable, after the installation we still do not trust, want to confirm whether the installation is successful, then here we also have ways to detect, in the cmd input:
Sc Query Intelhaxm
If this interface appears, it means that you have successfully installed the emulator, the following is to update the Android SDK
Android SDK Update
because of the policy restrictions of the celestial kingdom, let us update the SDK has become a very uncomfortable thing,
1, you can modify the Hosts file, the selected front # to remove
2, now there are some free VPN can be, install a VPN, and then you can use, I use the line cloud VPN
http://www.xingyunvpn.com speed is really good, with Japan line download generally above 700kb/s
3. Run the app on the simulator
Use existing specifications or you can create one yourself .
here the simulator is already running, at the first run, the simulator is a bit slow, about 30 seconds to start
Real-Machine debugging
1, open the mobile phone developer mode,
Set advanced developer Options
2, download the corresponding driver of the phone, download an app Bao or pea pod, and so on, connect the phone, and then will automatically give you to install the corresponding driver of your phone,
3, in the Android Studio to check, whether connected to your real machine
Here I have connected, then you can directly click to run, select the real machine debugging, so you can debug on your phone
Android Series one: Environment construction