Joke Collection Website - Blessing messages - How to install the Android development environment in eclipse

How to install the Android development environment in eclipse

Required tools: Eclipse, JDK, Android SDK, ADT plug-in

Build Android development environment:

1. Install and configure JAVA development environment:?

①Install the prepared Eclipse and JDK on the local machine (preferably in the full English path), and configure environment variables for JDK, where the JDK variable value is the root directory of the JDK installation path. Such as D:\Program Files\Java\jdk1.7.0_02.

②Open the command prompt (cmd) and enter the java -version command. If the following figure is displayed, it means that the JAVA environment variables have been configured.

2. Install the ADT plug-in:

①Open the installed Eclipse, select "Help" on the menu bar - click and select "Install new" in the pop-up drop-down box software".

③Install the ADT plug-in: Click the "Add" button in the newly opened dialog box - click the "Archive" button in the opened dialog box to select the ADT plug-in compression that has been downloaded and saved on the local hard disk. Package, as for the "Name" above, you can choose whatever you want.

④After clicking the "Ok" button in the previous step, you will find two rows of check boxes in the middle blank space. Click the "Select All" button to select all the check boxes. After this step, "Next", if you need "Accept", select "Accept" until you click "Finish", so that the ADT plug-in is installed. After installing the ADT plug-in, a row of Android icons will appear on the Eclipse toolbar, as shown below:

3. Install SDK:

①Install the downloaded Android SDK to this On the machine (preferably installed in a full English path), and configure environment variables for the Android SDK. The environment variable value of Android SDK is the platform-tools folder and tools folder subdirectory path in the SDK installation directory, such as: E:\My Studying\Android\android-sdk\platform-tools, E:\My Studying\Android\ android-sdk\tools, in the variable value, the two paths are separated by commas.

②Open the command prompt (cmd) and enter the android -h and adb commands respectively. If the following picture is displayed, the Android SDK environment variables have been configured.

③Open the installation directory of Android SDK, double-click "SDK Manager" - in the opened window, first select the SDK version that needs to be installed, where "Status" indicates whether the SDK package is installed. If " Android2.2 (API 8)" (because it has been installed before, so the "Status" is "Installed") - then click the "Install packages" button, and it is best to select "Accept All" in the pop-up window so that Install all the packages the user just selected - finally click the "Install" button to start the installation. ⑤ In the pop-up dialog box, select "Android" in the left column - select the root directory of the SDK installation path through the "Browse" button on the right - click the "Ok" button at the bottom so that the SDK is loaded on Eclipse It worked.

4. Create an Android emulator (AVD):

①Open Eclipse - click the icon indicated below on the Eclipse toolbar to open the "Android Virtual Device Manager" window .

② Click the "New" button in the "Android Virtual Device Manager" window - you can choose "Name" in the pop-up window; "Target" refers to the system version of the emulator; "SD Card" "Size" refers to the size of the mobile phone's memory card. As long as the user does not install too many applications on the simulator, 20~30MB is usually enough; "Skin" refers to the resolution of the screen, among which "Built in" It is the standard screen resolution size commonly used in mobile phones, while "Resolution" is a customized screen resolution size. You can choose the specific method according to your own situation. After everything is set up, click "Create AVD" and an emulator will be created.

Attachment: Android emulator model and its corresponding resolution size:

So far, the Android development environment has been successfully built on Eclipse.