The basic development environment is Eclipse + Android SDK + Android plugin for Eclipse
NetBeansBasic requirements for developing Android: NetBeans (including JDK) +android Sdk+nbandroid (Android development plugin for NetBeans)
Environment: NetBeans8.0 & Win7
1. JDK Installation
If you do not have the JDK, you can go here to download, the next task is to install the prompt step-by-step. The steps for setting environment variables are as follows:
- The following environment variables are added to the system variables, such as environment variables, properties---
- The Java_home value is: D:\Program files\java\jdk1.6.0_18 ( the directory where you installed the JDK )
- The Classpath value is:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\bin;
- Path: Append%java_home%\bin at the beginning;
- Note: setting environment variables in the previous four steps is not necessary for building an Android development environment and can be skipped.
After the installation is complete, you can check that the JDK is installed successfully. Open the cmd window and enter Java–version to view the version information for the JDK. A screen similar to the following shows that the installation was successful:
2. install nbandroid plug-in
- Open NetBeans
- Open tools (Tools), Plugins (Plugins), Settings tab (Setting)
- Click the "Add" button, the following screen appears, you choose the name, add Http://nbandroid.org/updates/updates.xml to the URL, OK
Switch to the Available Plugins tab (Available Plugins), locate the Android and Nbandroid Extensions, tick and click "Install", and you can view it in the "Installed" list after completion.
3. Set the Android SDK path
- Open tools, Options, other
- The SDK can be downloaded directly by clicking on the Download Android SDK, or downloaded from other sites in the country, downloaded to the D drive (the Android SDK website is integrated in Eclipse, and a separate Android SDK for plugins). Pay attention to the English to distinguish, the domestic large departments are downloaded integrated in the eclipse)
If you are prompted to find android-sdk, you need to download it via the Android SDK Manager, and see the SDK Readme.txt file in the ANDROID-SDK directory in detail.
4. Create AVD
AVD (Android virtual device), which is Android-run virtual appliance, is recognized by Android Simulator. To build the Android to run, the AVD must be created, and each AVD can be configured with a lot of running items (from Baidu Encyclopedia). The steps to create an AVD in NetBeans are as follows:
Open (Android SDK manager) tools, Android SDK and AVD Manager, Virtual Devices, wait a moment, pop up the following screen
NetBeans installs Android development environment