I have an android project with java and kotlin. When i execute 'gradle app:assemble", i get the error output:
error: package javax.annotation.processing does not exist import javax.annotation.processing.Generated;
error: cannot find symbol @Generated("androidx.room.RoomProcessor")
I added 'com.google.code.findbugs:jsr305:3.0.2' but it's not working.
Dependencies for Room in my project are
implementation "androidx.room:room-runtime:$room_version"
, "androidx.room:room-compiler:$room_version"
.
i add compileOnly 'com.github.pengrad:jdk9-deps:1.0'
. it works for me.
I added this line of code in the file build.gradle(:app) in the part of dependencies and it works!
dependencies { compileOnly 'com.github.pengrad:jdk9-deps:1.0'
Source: https://github.com/pengrad/jdk9-deps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With