Preface description
Related steps
> JDK Download installation configuration
> Android stuido Download installation configuration
> Android SDK Related Configuration
> genymotion Download Installation configuration
Program Testing
After the environment is set up, it is necessary to test the program to truly succeed
> Helloworldandroidstudio Program Testing
If not rookie, click to download your own installation
Development software |
Official address |
My resources (Baidu Cloud) |
JDK1.7 |
Please click on my |
Please click on my |
Android SDK24 |
SDK not included, download required Please click on my |
SDK with 4.0 and 2.1 included Please click on my |
Android Studio |
Please click on my |
|
Genymotion |
Genymotion2.7.2 VirtualBox5.0.2 |
genymotion2.4.0 virsualbox4.1.2 Please click on me to download together |
JDK Download the installation configuration
Direct access to the website to download the corresponding version, installed in non-C-disk non-Chinese directory
Http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
Configure Java environment variables after installation
Java_home |
JDK Installation path Mine is: D:\iteniv\java\jdk1.7 |
PATH |
Allows the system to identify Java commands under any path %java_home%\bin |
CLASSPATH |
Java Load classes (class or lib) paths Only classes in Classpath, Java commands can recognize .; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar |
After configuration, cmd input java-version or Java appears the following information is configured to complete
Android Studio Download the installation configuration
1> Download Android Studio
Because there is no FQ, so to the data collection online download
For the sake of convenience, download the includes Android SDK version directly
Because there are errors in downloading no Android SDK.
If you're using Eclipse, you can configure it directly as an Android SDK.
2> Startup issues
There is a problem at boot time
Because the system is 64-bit, but the JDK installs 23-bit
However, the Android studio launcher is 64-bit and must require a 64-bit JDK
So the error
Find non-64-bit in Android Studio installation directory
3> Installation Configuration Android Studio
Install directly to D:\iteniv
Select all on the hook
Select the installation path, or select non-C-drive non-Chinese path
4> Launch Android Studio
Import settings for Android Studio
If this is the first time, you can choose it directly.
Select Click Next
Select Custom Installation
SDK component installation. Check that you have an existing installation, directly next
Simulator settings, default, then click Next
And then wait for the next few components
5> Creating a Project
After the configuration starts successfully, you can see the following interface.
Then you can click on the first item to create the project.
New project, fill in the relevant information
Project location stands for projects Directory
A target represents a working path, which is centrally placed in the specified directory for easy management
Select the platform's SDK, here by default
Don't worry about it, just next.
Select the type of activity, where the default direct next
Enter the activity's information including the name of the layout and click Finish to create it.
Create a project, wait a minute
Project Creation succeeded
Android SDK Configuration
The downloaded studio has its own SDK, but needs to be configured to update
Resolve cannot update by using agent directly
Adding content to the Hosts file
Open C:\WINDOWS\system32\drivers\etc directly
Add the following to the Hosts file
203.208.46.146 www.google.com
74.125.113.121 developer.android.com
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
Then you can download it now.
genymotion Download the installation configuration
If you have already downloaded the installation, skip the 1th step to download the installation
1> Download Installation
Genymotion needs VirtualBox support
Best to install separately, download without VirtualBox
Download the VirtualBox separately.
Install VirtualBox and install Genymotion first
It is also installed in the IT development catalog D:\iteniv
Next Run Genymotion
You can add a device by clicking Add
But sometimes downloads fail, so look down
In the directory c:\users\[your user name]\appdata\local\genymobile directory
Find Genymotion.log, copy links using third-party downloads
Download good copy to
c:\users\[your user name]\appdata\local\genymobile\genymotion\ova
Then replace the files that are not downloaded, and even the file names are replaced
Otherwise it will be downloaded again.
2> Android Studio Configure Genymotion
After opening Android studio, Operation search to genymotion plugin download installation
After downloading it, restart Android Studio and see the label.
That means the Genymotion plug-in is installed.
The first time to open a Genymotion installation directory
The Genymotion Device Manager Emulator management interface will be displayed when set up
You can choose to start the emulator to run the program.
Program Testing
Select Emulator to start, then run the program, ok!!!
Android Development Environment Build Win7x86+studio