Geertjan's Blog

  • June 26, 2011

Dummy Guide to NetBeans Android Development

Geertjan Wielenga
Product Manager

Start by setting up the Android SDK (fantastic Ubuntu instructions here), then install NBAndroid.

Now you can create a new Android project:

Having set up the Android SDK, you're able to select your Android platform in the IDE:

The project structure created by the above templates is nice and easy to understand:

Build the project and you have your APK file and everything else generated in the Files window:

Nice features are included, such as code completion in Android XML files:

Several other features are included, as described here, such as "Export Signed Android Package", as well as deployment to the Android emulator. Now that I have everything set up (took literally about 10 minutes from start to finish), I'm going to be experimenting a bit with Android development via NetBeans IDE.

Join the discussion

Comments ( 18 )
  • W. Wayne Liauh Sunday, June 26, 2011


  • guest Sunday, June 26, 2011

    its a great one..i need to know how the netbeans handle the android programs..could anyone teach me about this?

  • Rahul Aggarwal Sunday, June 26, 2011

    I always followed the tradition of developing Java application using Netbeans. Thanks for letting me know the steps for developing Android apps, as I work in a mobile application development company, I will be benefited from this illustrative post! Thanks for sharing.

  • guest Monday, June 27, 2011

    Is Android SDK available for windows?

  • Constantin Thursday, June 30, 2011

    Android is available on Linux , Mac OS and Windows. There are also sources for other operating systems.

    This tuto is excellent; simple and practice.

    Thanks Geertjan !

  • Allan Saturday, July 2, 2011

    Can't get it to build a project. keep getting the following error.

    apply returned: 255

  • Jacob Dixon Monday, October 24, 2011

    This is a very nice tutorial regarding creation of a new android project using Netbeans, also it minimizes the efforts and complexity of the project as it already adds lots of files required for XML along with the project creation. I would also like to use netbeans as its good well known and I am very much familiar with it, so now I would like to try netbeans for android project. Keep posting such valuable information.

  • guest Tuesday, December 27, 2011

    Thanks for writing superb article, recently i have shifted my IDE from eclipse to NetBeans, i am looking for the same what u have posted.

  • Dr. Josef A. Brocks Thursday, May 3, 2012


    I use Nb 7.11 under Vista and have installed Android 4.0.4 correctly (I beleave at least!). When building a project I always get the error message: 'Project Folder already exists and is not empty'. Can you give me an advice what to do.

    Kind regards

    J. A. Brocks

  • guest Saturday, May 19, 2012


    I had the same problem and I just solved it. Follow the following steps:

    1. Delete existing "NetbeanProjects" folder (you can always backup other projects before deleting the folder).

    2. Start Netbeans (I am using netbeans 7.1.2).

    3. Go to Tools > Plugins > Settings (tab)

    4. Click "Add" button at the lower right corner of the dialog panel.

    5. The dialog box "Update Center Customizer" will show.

    6. Enter a name (e.g. Android Plugin) and select the "Check for updates automatically" check box.

    7. Enter the following url in the URL box http://kenai.com/downloads/nbandroid/updatecenter/updates.xml

    8. Select OK.

    9. Now select the "Updates" tab in the same panel, you should have at least one update pending.

    10. Select the update(s) and click the "Update" button.

    You can now close the panel and create new android project as appropriate. Remember the package convention "com.bla.bla" and build the project. Should be OK now.

    The problem is that you must have downloaded the kenai plugins manually. Those plugins are probably outdated. The above URL gives the up-to-date updates. And if this doesn't work, change your Android SDK version to 4.0.3 or lower.

  • Francisco Valerio Thursday, July 19, 2012

    finalmente una solucion al problema de 'Project Folder already exists and is not empty'. :) muchas gracias.. saludos

  • guest Sunday, January 13, 2013

    After I build my project when I go to run it it ask me to select a device. But none of my devices that I have loaded show up in the window.They are there when I select manage android SKD on the new application screen. What am I missing?

  • guest Saturday, May 4, 2013

    Good one with explanation from scratch.... Even this http://www.compiletimeerror.com/2012/12/configure-android-on-pc.html might also help... Have a look...

  • Lee Wright Wednesday, July 24, 2013

    Very cool! Thank you!

  • Roy Wednesday, July 9, 2014


    BUT i am still wondering how to enable netbeans to do this! i have downloaded the nbandroid...now wat?

  • Geertjan Wednesday, July 9, 2014

    You missed the great big yellow "Installation Guide" button on http://nbandroid.org?

  • guest Wednesday, July 22, 2015

    I wanted to know about the Net beans android development. this article has given me an insight about it but I want you to provide with more detailed information so that more undetrstanding could be gained.

  • Sourabh Sharma Thursday, October 6, 2016

    Thanks for sharing the detailed information about creation of a new Android project using Netbeans

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.