Use AA with Kotlin

114 views
Skip to first unread message

Sang-Min Yoon

unread,
Jul 19, 2016, 1:10:32 AM7/19/16
to androidannotations
I had a project with AA, and I try to convert to Kotlin.

With some try, I can use basic annotations in Kotlin, but some do not work well.

For example, I failed to compile with @Pref.

And, @Extra generates expected code with @JvmField, but 'MyActivity_.intent()' shows a mysterious error, 'unresolved reference intent'.

Does anyone use full AA features with Kotlin?

Csaba Kozák

unread,
Jul 19, 2016, 4:38:41 AM7/19/16
to androidan...@googlegroups.com
I also tried the intent thing, and it indeed cannot find the reference for the static method.

I would suggest to modify the Kotlin example, push it, and ask a question in the Kotlin forum.

Unfortunately it seems the bridge between Java and Kotlin is not fully working.

--
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.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages