Build an Android development environment in Eclipse, eclipseandroid
Many of my friends are worried about setting up an Android development environment on the Internet. The following articles hope to help these friends:
You can use Android Studio, which provides integrated Android development tools for development and debugging. It is a good development environment. The following describes how to build the SDK in eclipse:
First install jdk and eclipse:
Official Website:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
Www.eclipse.org
Software installation is not described here. You do not need to configure the environment after installing jdk in a later version. The system can directly read the software.
Then we install ADT: http://yunpan.cn/cVWvEXJznWsem access password a277 in eclipse
Installation Steps HELP-> Install New Software (note that ADT does not need to be decompressed)
The next step is to install the Android sdk: http://www.android-studio.org/According to the system installation (of course, go out of the wall, Google provides integrated ADT and sdk. Recently the wall is very high)
Then, we need to load the sdk installation folder in the Android option Window-> Preferences of eclipse.
We recommend that you configure ANDROID_SDK_HOME: % ANDROID_SDK_HOME % \ tools; % ANDROID_SDK_HOME % \ platform-tools. For ease of use, we will directly access the tool software under tools, and automatically create the simulator directory under the sdk directory when creating the simulator. Note that it is configured in the user variable of Administraor.
Then we need to go to the installation directory of the Android sdk, double-click the SDK Manager, and select tools and the Android version you want to develop. Several packages may not be downloaded successfully. Just try them several times. The installation is slow:
First, change the host file. The host file is in the C: \ Windows \ System32 \ drivers \ etc directory. Open the "hosts" file in notepad and append the following two lines to the end of the hosts file, save it. If you have no permission to modify the host file in Windows 8, right-click the hosts file and set the Users Group to have full control over the hosts file.
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
The above two rows are placed in the host file, which means to direct the local access to dl.google.com and the dl-ssl.google.com to the server with the IP address 203.208.46.146.
We have Tools at the top of SDK Manager, click Options at the bottom, and select
We can also find a proxy (http://www.androiddevtools.cn/), faster:
After the above steps are completed:
Put it back in eclipse:
Click to create a simulator, because we need a simulated device after development and create it according to the development requirements.
If the accelerator software is not installed, the startup of the simulator will be slow. We need to install the software:
D: \ androidsdk \ extras \ intel \ Hardware_Accelerated_Execution_Manager is installed in the sdk directory, but some computers must modify the virtualization technology options in bois and restart the computer to go to bois, in the System Configuration option, Virtualization Technology is set to Enabled. Many computers are now set to available by default.
Here we will introduce adb: Android debugging Bridge:
We can run adb: adb devices in dos;
Disable adb: adb kill-server;
There are many adb command lines
In many cases, the simulator and eclipse are disconnected. Generally, there are two situations:
1. Restart adb to solve the problem.
2. The port number used by adb is occupied by other software. Enter the following in dos:
Netstat-ano
After checking the software that occupies the port, open the task manager and kill the process that occupies the port adb.
You can also use third-party simulators, such as Genymotion.
Finally, a resource website is provided. You can use Android Studio to build and download more resources:
Http://www.androiddevtools.cn/