Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.lang.NoClassDefFoundError: javax/annotation/Generated

gradle 7.0.2 JDK11

dagger2 を試そうとしたらエラー

 

解決策、以下を追加

dependencies {
    annotationProcessor 'javax.annotation:javax.annotation-api:1.3.2'
}

 

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha