Open detailview jmix 2.0

I’m trying to open a viewDetail screen but i have this exception

viewNavigators.detailView(NewEntityDetailView.class).newEntity().navigate();

the exception is
java.lang.IllegalArgumentException: MetaClass not found for class com.company.provavie.view.newentity.NewEntityDetailView

how can I solve it ?

Hi,
You can check the annotations in the entity for which the error occurs.
The entity should have following annotations: @JmixEntity and @Entity.
See documentation here: Entities :: Jmix Documentation

You can also attach a demo project if the problem persists.

Regards,
Mikhail