Configure the android Development Environment on netbeans

Source: Internet
Author: User
Tags netbeans

I 've been in the garden for a long time. I 've been learning other people's ideas and technologies. Today I can't bear the loneliness anymore. Haha, a virgin post...

Just now, I have been developing Android for some time. The basic development environment is eclipse + Android SDK + Android plugin for eclipse. It happened that I had a new project on hand, so I had a whimsy, the legend of developing android in netbeans is illustrated below.

First, let's talk about the basic conditions required for Android development under netbeans: netbeans (including JDK) + Android SDK + nbandroid (Android development plug-in designed for netbeans)

Next, let's talk about the configuration process:

1. Install the nbandroid plugin
    • Open netbeans
    • Open tools> plugins> setting)
    • Click "add" button, the following interface appears, select the name, add http://kenai.com/downloads/nbandroid/updatecenter/updates.xml to URL, OK

    • Switch to the available plug-ins tab (available plugins), find the android plug-in (as shown below), and install it as prompted.

2. Set the android SDK path

Probably because of the latest update of the nbandroid plug-in, I found that the current configuration process has omitted the step of adding the Google Android platform to netbeans. Therefore, you can set the local path of the android SDK as follows:

    • Open tools> Options> Android Tab)
    • Select your local Android SDK path, and click OK. The configuration is complete.
3. Create AVD

AVD (Android Virtual Device) is a virtual device running on Android. It is recognized by the android simulator. To run a created Android program, you must create an AVD. You can configure many running projects (from Baidu encyclopedia) on each AVD ). To create an AVD in netbeans, follow these steps:

    • Open tools> Android SDK and AVD Manager> Virtual Devices. Wait a moment and the following page appears:
    • Click the new button. The following window is displayed. After the options are set, click Create AVD. Wait until the creation is successful.

3. Create an android Project

So far, Environment configuration has been completed. Now you can create an android project in your netbeans as follows:

    • Create a project, select android on the left, android on the right, and next.
    • Enter the project name, package name, And activitiy name, select the corresponding SDK version, and click Finish.
    • As a test, we cannotCodeAfter making any changes, right-click the project and run it. Wait for a while (the android simulator is quite slow). The following interface is displayed: OK.

Finally, it should be noted that the nbandroid plug-in is still in development, not very mature, and has fewer functions (recently added the logcat function ), problems still occur during running, so hopefullyProgramApe friends can pay attention to the nbandroid development process (http://www.nbandroid.org/), what problems can be discussed with me, thank you!

The virgin post is done. Even, wash and sleep...

Related Article

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.