AndroidRuntime: FATAL EXCEPTION: main Caused by: java.lang.RuntimeException

Issue

Lots of errors and I can't find the solution, it's a college project for mobile apps

https://github.com/ThalesCaruso/Lista-de-Mercado

enter image description here
enter image description here

Watched a lot of youtube tutorials but didnt work

Solution

You’re using

implementation 'androidx.room:room-compiler:2.5.0-beta02'

As per the Room Declaring Dependencies guide, you need to be using annotationProcessor for Java projects, not implementation:

annotationProcessor 'androidx.room:room-compiler:2.5.0-beta02'

Answered By – ianhanniballake

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published