I have checked these are the questions and it answers but not got the solution. Question 1 (SO), Question 2 (SO), Question 3 (SO), Question 4 (GitHub) also Question 5 (SO) but not getting solution. I am using Android Studio Arctic Fox | 2020.3.1 and my project configurations are as below :
Project level build.gradle file
classpath 'com.android.tools.build:gradle:4.2.2'
app-level build.gradle file
//............
//dagger 2 dependency injection
implementation 'com.google.dagger:dagger:2.11'
annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
implementation 'io.reactivex:rxandroid:1.2.1'
//compileOnly 'org.glassfish:javax.annotation:10.0-b28'//tried with this also
implementation 'javax.annotation:javax.annotation-api:1.3.2'
//............
This is my gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
I am also using Android 11 JDK while running the project. Help would be appreciated