• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Android studio kotlin room crashing

When I test this same code with java no errors are found. When I use kotlin with viewmodel and room it gives me this error: ProductDatabase_Impl does not exist. What import am I missing?
here is my build.gradle (I believe it's because of imports since the rest of the code is the same more or less):
2018-11-20.png
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones