I have an issue when trying to import in scala. The object Database
exists under com.me.project.database
but when I try to import it:
If you are using gradle
as your build tool, then ensure that jar
task is not disabled.
I had multiple modules in my project, where one module was dependent on a few other modules. However, I had disabled jar
task in build.gradle
:
jar {
enabled = false
}
That caused it to fail to resolve classes in the dependent modules and fail with the above error.