Getting a really strange issue; hopefully you guys can help.
I have been using Immutables library in my android project since a long time and had no issues. The auto-generated files for Immutable objects are located in (as example) build/generated/source/apt/debug/com/package/name/ImmutableClass.java
and the project compiles and works fine.
I recently decided to use Dependency Injection in the same project and started using Dagger 2. I have used Guice in another Java project (non-Android), but never used Dagger before. All of a sudden, I am starting to get weird errors saying that the Immutables class could not be found.
Error: error: cannot find symbol class ImmutableClass
.
I tried removing the @Component
and @Module
that I created and the errors went away. The funny thing is that the file ImmutableClass.java
is still there in the same location as earlier.
Please let me know your thoughts. Thanks.