https://kotlinlang.org logo
#android
Title
# android
d

dave

03/12/2019, 11:46 AM
Hi guys, I'm having this compilation issue:
Copy code
error: cannot find symbol
@Generated()
error: package javax.annotation.processing does not exist
import javax.annotation.processing.Generated
It seems to be related to dagger2, happens when I try to run my Espresso tests in my ec2 instance. I'm using Open JDK11, Gradle 4.10. Any Ideas?
s

skoric

03/12/2019, 11:50 AM
are you maybe using JDK 9+?
d

dave

03/12/2019, 11:53 AM
I'm using JDK 11
Is there any issue with it?
s

skoric

03/12/2019, 11:56 AM
d

dave

03/12/2019, 12:01 PM
Thanks a lot, few hours wasted on it. Just configured to use jdk 1.8, and that's it. Have a nice day!
🙋‍♂️ 1
s

Sergey Chelombitko

03/12/2019, 12:06 PM
I tried OpenJDK 11 few weeks ago and made Dagger work by passing
--release 8
through kapt options.
👍 1
For the missing annotation iirc I used
implementation 'javax.annotation:javax.annotation-api:1.3.2'
.
3 Views