I have a class HillfortStore in this package:
package org.wit.hillforts.models
Messed up the package name in the class (missing the \'s\'):
just do this :
in main project folder ,in terminal type
cd android
then type this
./gradlew clean
then build your app again
I needed to complete a rebuild of the app. This is all it took to fix the issue. It is working now.
I had a similar problem because Lombok plugin didn't work with new gradle. Just removed these lines:
compileOnly 'org.projectlombok:lombok:1.18.4' annotationProcessor 'org.projectlombok:lombok:1.18.4'
and the problem disappeared.
Maybe you also have some kind of "troubled" plugin that doesn't get along with new gradle)
Delete .gradle file from your project folder then clean the project and Rebuild