Issue Details (XML | Word | Printable)

Key: NBANDROID-41
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: radim
Reporter: Lomendil
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
nbandroid

Unable to choose Android Platform

Created: 18/Jul/09 06:15 PM   Updated: 24/Jul/09 08:24 AM   Resolved: 23/Jul/09 04:57 AM
Component/s: project
Affects Version/s: None
Fix Version/s: 0.9

Time Tracking:
Not Specified

File Attachments: 1. File android-bug (9 kB) 18/Jul/09 06:15 PM - Lomendil
2. Text File messages.log (49 kB) 22/Jul/09 08:13 PM - Lomendil

Image Attachments:

1. nbandroid.jpg
(52 kB)
Environment:

Linux Ubuntu 9.04
NetBeans 6.7
nbandroid 1.5


Tags:


 Description  « Hide

Here is what I did :

  • Creating an Android project with nbandroid plugin.
  • The IDE complains that no platform is found
  • Click the manage platforms button
  • Add platform...
  • 1. Select platform type :Google Android open handheld platform
  • Next.
  • 2. Choose platform folder : nothing happens on the right side
  • Next.
  • 3. ... : nothing happens (text only change on the left)

I can see a little flickering red icon, see the attachment for the given message.



Lomendil added a comment - 18/Jul/09 06:28 PM

I can't find any way to edit, so here some corrections :

  • It's nbandroid 0.7
  • I am a PHP developper, so I first installed nbandroid, THEN realized that I didn't have Java support. So I downloaded the Java plugins and tried again. It worked better, but still had this blocking issue.

Sorry !


radim added a comment - 21/Jul/09 02:59 AM

While the stack trace looks similar to http://www.netbeans.org/issues/show_bug.cgi?id=158930 I think we missed original problem here. Please attach complate log file to the bug (http://wiki.netbeans.org/FaqLogMessagesFile)


radim added a comment - 21/Jul/09 04:13 AM

Better reference to netbeans issuezilla - http://www.netbeans.org/issues/show_bug.cgi?id=158099

+ there is a discussion in http://www.nabble.com/Need-%22process%27-help...-td20797793.html - nbandroid code seems to be free of defect mentioned here (it separates wizard panel implementation from UI components). Though it might be helpfull to know what modules do you use (will be in log file). Or whether you use custom L&F that can interact with platform support UI.


radim added a comment - 22/Jul/09 03:43 AM

Please add the complete log.


Lomendil added a comment - 22/Jul/09 06:04 AM

Sorry, I was quite busy these days. I'm adding the log tonight (GMT+2).

Thanks for your reactivity !


Lomendil added a comment - 22/Jul/09 08:13 PM

~/.netbeans/6.7/var/log/messages.log


radim added a comment - 23/Jul/09 04:57 AM

I will commit the fix soon (hg on kenai.com is unvailable now)

There is a NPE from SDK library that comes from Android SDK. Probably your SDK installation has some kind of permission problem and it cannot list directories in add-ons folder. If you fix that you should be able to proceed even before we release new version of plugin.


Lomendil added a comment - 23/Jul/09 05:34 PM

Everything comes from repositories but i'll have a look at it. I'll be on holidays for more than 2 weeks though, so maybe the new version will be out before I come back.

Thanks for your help


radim added a comment - 23/Jul/09 05:49 PM

What repository do you mean? Ubuntu debian package repository or do you have SDK built from Git repository at source.android.com?


Lomendil added a comment - 23/Jul/09 06:12 PM

I'm talking about Ubuntu repository.


radim added a comment - 24/Jul/09 04:48 AM

The only repository with Debian package that I see is described at http://www.newlc.com/en/deb-packages-android-sdk-bleeding-edge-cupcake-images and I see http://ppa.launchpad.net/rzr/ubuntu/pool/main/a/android-sdk/android-sdk_1.5.2-0ubuntu0~rzr7_all.deb

To be honest my patch can fix the problem with wizard but it is very likely that this SDK will not work. File layout there is different and the tools (in SDK as wel as in nbandroid modules) relies on it. Unless someone wants to contribute fixes this is not supported. Go to get SDK from developer.android.com


Lomendil added a comment - 24/Jul/09 08:24 AM

Hem, of course you're right

I was thinking about the JDK. The SDK was downloaded from android.com and the filename is andoid-sdk-linux_x86-1.5_r3.zip.

Anyway, unzipping it to my home dir made the trick Thanks again !