Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orma incompatible with Room? #477

Open
naevtamarkus opened this issue Aug 17, 2019 · 0 comments
Open

Orma incompatible with Room? #477

naevtamarkus opened this issue Aug 17, 2019 · 0 comments

Comments

@naevtamarkus
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant