-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Room + napt = javax.annotation.processing.FilerException: Attempt to recreate a file for type #14
Comments
I'm seeing that during incremental compilation before starting annotation processing
And From my perspective, we can try to not add classes to UPD: This is not so easy as I expected. Maybe you have any ideas how to fix it? |
Hey, @bacecek! Seems like targeting KotlinCompile destinationDirectory directly does the trick and fixes this incremental scenario. |
I'll prepare new release shortly |
Great, thank you! Now it works |
Hi!
I have applied your plugin in module with Room and got the next issue:
Preparations:
Let's assume we have module with
build.gradle
like this:And we have the sample project from tutorial: https://developer.android.com/training/data-storage/room#java.
Steps:
Result:
This build fail is not reproducing without napt plugin.
Simple example is here: https://github.com/bacecek/sample-checking-assistant-role/tree/room_FilerException.
Environment:
Napt version 1.17, JDK 11, Gradle 7.5.1, Android Gradle Plugin 7.2.1, Room 2.4.3.
I'n not sure that the main cause of this problem is this plugin so it would be great if you will help me to investigate what is the main cause and maybe to fill the issue in Google's issue tracker.
The text was updated successfully, but these errors were encountered: