Sunday, February 20, 2011

Beta build of new project support

After a long hiatus I've published an update for this project that brings major overhaul. Main goal is to support project layout and build system defined by Android SDK (see bug #65). With the updated NBAndroid you can use a project created with Android SDK in NetBeans and vice versa. NetBeans project support now expects the same project layout and uses the same set of tools for building.

Installation and configuration:
  1. Download modules from project download area and un-zip them.
  2. Open plugin manager in NetBeans (go to Tools | Plugins) and add all 10 downloaded modules: go to Downloaded tab and add them using file chooser displayed when you click on Add plugins. Install these plugins with Install button on the same tab. You have to accept license and the fact that the set of NBMs is not signed. NetBeans 6.9 or newer is required.
  3. Set the location of Android SDK in Tools | Options | Miscellaneous | Android. You need to select your android-sdk-linux_86 (or whatever is the name of the SDK folder on your OS of choice). You can skip this step you plan to open a project that is created with this SDK. NBAndroid will try to read to location of SDK from your project.

There is no new AutoUpdate site for this new version yet and the old AutoUpdate URL still points to older version. This will change once the new support becomes more stable.

Quick start:
  • You can create a new project or open existing project. To create a new project you have to select a build target that you will build against.
  • Source file editing is supposed to work as well as building.
  • You can run your application and the module will ask whether you want to deploy it to an already running emulator or to start a new one. There is no UI to create/update/delete existing AVDs yet.
  • Compatibility with older projects created with previous version of nbandroid is not solved (and very likely will not be addressed in the future). I guess the simplest way is to remove nbproject directory in your project and create new Android project here (either using new nbandroid or with SDK).

There is neither debugging support nor support for testing project and many more things. Bear in mind that there will be rough sides but your feedback can help to move this project forward. Simply said I'm only going to commit some time if there is an interest. Contributions are welcomed. I'd like to turn these short comments into wiki topics on project site and a help with that would be nice (including some screenshots).


Good luck.

12 comments:

  1. This is SOOO good news.

    I am starting a new Android teaching class today and therefore unfortunately we will have to live with the old version, also for this class, but I am really very much looking forward to an updated version!!

    Jacob

    ReplyDelete
  2. Hi,

    It works fine. I've tried to create a new project everything went seemlessly.

    Although the "libraries tab of the project properties does not do anything useful. Most probably it is only a stub.

    Forget the old project setup for now, one can always copy the sources.

    Great job!

    ReplyDelete
  3. Hey Ive downloaded the file but it contains an exe file that my Antivirus recognizes it as a trojan

    ReplyDelete
  4. Ohh am so sorry Its a zip file I had downloaded earlier. Yap I have got the updates thank you

    ReplyDelete
  5. Woohoo! Best news I have heard this year. And to think I almost gave up my beloved Netbeans for Eclipse.

    ReplyDelete
  6. It works for creating new projects , but issues :

    - Need to uninstall previous NBandroid release (v0.11 for me) before installing new version
    - not abble to manage any more Java Platform after installing the plugin
    - not possible to create a project from existing source
    - no compatibility with previous NBandroid project

    So I come back with the "old version"

    ReplyDelete
  7. THANKS A LOT ITS A GREAT HELP I GOT THE PLUGIN FOR 6.9 ITS NOT ABLE TO DETECT THE PLATFORM OF ANDRIOD PLZZ HELP

    ReplyDelete
  8. I tried beta1.1 with nb69 works fine.
    To use the existing nbandroid projects,
    1)open up project and go to project properties and select sdk version in the "general" catagories. Click ok.
    2) Then remove the existing R.java file.
    3) clean and build
    4) run
    hope this helps.

    Radim, I'd like to contribute and let me know if you need any help.

    ReplyDelete
  9. Hi,
    when I try to add an Android platform, I dont even get the question of platform type, and netbeans does not allow me to add any of the platform folders.
    I am running windows XP and Netbeans 6.9.1

    ReplyDelete
  10. I see the target platforms when I want to create a new project, but netbeans says
    "Package Name not valid"

    ReplyDelete
  11. It gives me error when I try to build the project:

    java.lang.NoClassDefFoundError: org/netbeans/modules/android/core/sdk/SdkManagers

    Did not happen when I was on the older version, any help? thanks!

    ReplyDelete
  12. If you are missing Android platforms, you might need to download them. Follow instructions here:

    http://developer.android.com/sdk/adding-components.html

    If you're running Win 7 make sure you run the SDK Manager with admin privileges.

    ReplyDelete