Annotation In android module

20 views
Skip to first unread message

AMADOU BAKARI

unread,
Oct 7, 2020, 4:56:54 AM10/7/20
to androidannotations
Hello !
I'm using the last version of androidannotations 4.7.0 
but when I'm using it in a android module it isn't support.
The binding from xml to java (Exple: findViewBy) is there a solution about it?

Regards.
AMADOU BAKARI

kozak...@gmail.com

unread,
Oct 7, 2020, 4:57:38 AM10/7/20
to androidannotations
Hi,

Sorry, i do not understand the exact problem. Please elaborate.

Jan Lippert

unread,
Oct 7, 2020, 8:15:09 AM10/7/20
to androidan...@googlegroups.com
Hello,

It sounds to me like Amadou has set up an android project and added Android Annotations. However, the annotations are not working. My guess would be a misconfiguration.

@Amadou: did you follow the "getting started" on https://github.com/androidannotations/androidannotations/wiki ? You can also take a look at the maven or gradle examples on https://github.com/androidannotations/androidannotations/wiki/Examples

Best regards,
Jan

--
You received this message because you are subscribed to the Google Groups "androidannotations" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidannotati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/androidannotations/5cce0880-66ed-4df6-bf82-15fa7c911e83n%40googlegroups.com.

AMADOU BAKARI

unread,
Oct 7, 2020, 8:39:44 AM10/7/20
to androidan...@googlegroups.com
Hello, 
additional informations maybe. I have a main android project (app) working very well using android annotations. Then I added module project (lib). So inside this last one(lib), I would like to use android annotations too to bind XML layout items (TexView, Button, ...) to my Java class using @ViewById(R.id.title) by example. But nothing work. I have investigated about it through forums and after collected information, it seems that android it isn't supported in android module. 
And I would like to know if it's true.

Jan Lippert

unread,
Oct 17, 2020, 9:20:29 AM10/17/20
to androidan...@googlegroups.com
Hi,

have you added the dependencies to the library module's gradle file too? 

AFAIK AndroidAnnotations should work fine in library modules too. 

Reply all
Reply to author
Forward
0 new messages