Skip to content
Advertisement

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

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

Advertisement

Answer

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'
Advertisement