Closed GoogleCodeExporter closed 8 years ago
Hello !
The truth is : we never tested AndroidAnnotations with Netbeans, mainly because
the Android teams write Eclipse plugins, not Netbeans plugins, so there are not
a lot of Netbeans users amongst the Android community, AFAIK. But that doesn't
mean it won't work with Netbeans.
So, could you please sum up what you did ? Do you use Maven or not ? How did
you configure Netbeans to use the AnnotationProcessor (maybe it handles that
all alone).
Does AndroidAnnotations generate subclasses (MyActivity_.java) when you use it
with Netbeans ? I would say 'yes' from what you explained, but I'm not sure so
please be explicit about this ;-) .
AndroidAnnotations is only doing one thing : generating activity subclasses at
compile time. When those classes are generated, they should be then part of the
APK that is installed on the phone. Therefore, if you put a breakpoint in a
subclass (MyActivity_), it should work.
Please provide a detailed explanation of what you did, and maybe we can go
through this together and see what's wrong.
Original comment by py.ricau
on 7 Nov 2011 at 4:23
False alarm. At work I had created quite big project with this library and
debugger was struggling. Can't access that project right now. However created
smaller one and it works flawlessly. Tomorrow I will look what is wrong with
that biggie :)
Speaking about Netbeans it has nbandroid plugin which works quite good. Plugin
uses standart android ant project structure. So everything what meets android
project structure should work on Netbeans. Eclipse had a little bit different
its own structure but since android sdk tools 14r everything should be even
more similar.
Original comment by lalad...@gmail.com
on 7 Nov 2011 at 5:32
Ok, thanks.
So you are saying that on a small projects, AndroidAnnotations works with
Netbeans, right ?
If you have a few minutes, could you write down the steps you followed to
create a new Android project that uses AndroidAnnotations with Netbeans ? Like
a beginners tutorial (click here, etc).
Let me know about the errors in your bigger project.
Thanks !
Original comment by py.ricau
on 8 Nov 2011 at 7:44
So I cleaned & rebuilded project. Debugging works like a charm. I was editing
my old project. Probably something messed up with previously compiled classes.
This can be safely resolved as invalid, if even is some problems it's nbandroid
plugins.
Nbandroid uses android ant project structure
(http://developer.android.com/guide/developing/projects/projects-cmdline.html).
There is absolutely no configuration needed, just add androidannotations
library to libs folder and everything works. This is same recipe for netbeans,
command line projects and I believe for all other IDE except eclipse which have
adt plugin.
Thank you for your attention and sorry for disturbing you with false
information :)
Original comment by lalad...@gmail.com
on 8 Nov 2011 at 9:10
Thanks for the feedback!
Original comment by py.ricau
on 8 Nov 2011 at 3:14
Original issue reported on code.google.com by
lalad...@gmail.com
on 7 Nov 2011 at 2:41