[Android study notes] Android Eclipse development environment construction

To live is to learn, to learn is not to live. - There will always be a bowl of chicken soup to feed.

1. Download and install the JAVA SDK

2. Download and install adt bundle

3. Configure the ANDROID_SKD_HOME environment variable

4. Create the first Android emulator

1. Download and install the JAVA SDK
2. Download and install the adt bundle

These two packages have now been integrated into one.
Official download link: http://developer.android.com/sdk/index/html
However, this link may be blocked by most people.
A classic version of Baidu: https://www.newasp.net/soft/107541.html
This is quite powerful, download 500+M.
It mainly includes two parts:
1.eclipse: Eclipse + ADT plug-in
2.sdk: Android SDK

I decompressed the compressed package and put it in the Android directory of the D drive, and removed the date from the folder name and modified it to "adt-bundle-windows-x86_64", the path and name can be determined by yourself, but for the sake of being conservative, the path should not contain Chinese and spaces.



At the same time, create a "workspace" folder and a "software information" folder in the Android directory, and create an "AVD" folder in the "adt-bundle-windows-x86_64" folder.

"workspace" folder: the path used to create the project in the future, and the files are saved under the workspace.

"Software information" folder: used for daily knowledge accumulation, documentation, etc.

"AVD" folder: used to save the files that generate the emulator


3. Configure the ANDROID_SKD_HOME environment variable
This so-called environment variable, in other words, configures the location where the emulator is generated. The above "AVD" folder is specially used to save the simulator files, so I made the following configuration:
Step 1: Open the environment variable of the system
Step 2 : Create a system variable named ANDROID_SDK_HOME and add the variable value as The system path of AVD is
as shown below:


4. After opening Eclipse in the Eclipse folder, it will let us select the workspace. This "workspace" has also been prepared in the previous step, so it is good to select this working directory here. After

opening Leave the Java - ADT window, close other windows, and click the emulator management icon.

After opening as shown. It mainly includes two parts: "Android Virtual Device" and "Device Definition".

5. Create a virtual device
The "Android Virtual Device" is empty at first, because no virtual device has been created yet. Click new in the upper right corner of the mouse to create a new device. The parameters in the new page are set as follows:

some of the parameters in this page can be roughly read, and those that cannot be read can be placed for the time being. You will need to use them to study later. After clicking OK, a new device is created. At this time, you can click the Star button on the right to start it. The first startup is relatively slow. If you enter the interface of the Android phone, then the basic environment has been configured OK!


By Urien April 18, 2018 20:07:12

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325953439&siteId=291194637
Recommended