maskarade/Android-Orma

Orma incompatible with Room?

Opened this issue · 0 comments

Dear Orma developers,

I've been hours banging my head against the wall so I decided to check with you.
I have the impression that there is some sort of incompatibility between Orma and Android's new architecture component 'Room'.

In my project I used to have Orma with a small DB (one table, really). I'm using the latest and greatest:

annotationProcessor 'com.github.maskarade.android.orma:orma-processor:6.0.2'
implementation 'com.github.maskarade.android.orma:orma:6.0.2'

And I've just added Room. It all goes well until I add Room's processor:

annotationProcessor "androidx.room:room-compiler:2.1.0"

From that time on, the compiler complains it can't find OrmaDatabase:error: cannot find symbol class OrmaDatabase
When it tries to compile the class that's using it. It fails when I try to declare the first variable that uses it OrmaDatabase db;

I've tried everything: clean, rebuild, invalidate caches... I've even tried to copy the OrmaDatabase.java in the tmp/generated (along with the other files) with no success.

Has anyone faced this issue? Can you help me somehow?
Thanks!