NetBeans installs Android development environment

Source: Internet
Author: User

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:

    1. The following environment variables are added to the system variables, such as environment variables, properties---
    2. The Java_home value is: D:\Program files\java\jdk1.6.0_18 ( the directory where you installed the JDK )
    3. The Classpath value is:.; %java_home%\lib\tools.jar;%java_home%\lib\dt.jar;%java_home%\bin;
    4. Path: Append%java_home%\bin at the beginning;
    5. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.