Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

430
Views
AndroidStudio: Duplicate class found in modules annotations-13.0 and kotlin-compiler-embeddable

Updating AndroidStudio this week I was forced to add AnnotationProcessor:

(Don't even understand what for.)

Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. kotlin-compiler-embeddable-1.3.11.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.11)

So I added to my app.build.gradle:

dependencies {
...
annotationProcessor "org.jetbrains.kotlin:kotlin-compiler-embeddable:$kotlin_version"
...
}

But now I can't get rid of the following errors:

Run tasks :app:checkDebugDuplicateClasses
> Duplicate class found in  modules annotations-13.0.jar (org.jetbrains:annotations:13.0) and kotlin-compiler-embeddable-1.3.11.jar   (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.11)

I don't know where org.jetbrains:annotations:13.0 is declared/imported in my gradles or settings.

How can I solve this error?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

I was getting a similar Gradle error stating duplicate class found in annotations when I tried to use kotlin in some Old project. In my case, I have to remove the following dependency which was causing conflict with kotlin's annotation module.

implementation 'org.jetbrains:annotations-java5:17.0.0'
over 4 years ago · Santiago Trujillo Report

0

I got similar error due to some libraries using different versions of the same intellij annotation library.

I run app:dependencies and found that library com.xx.yy is using intellij.annotations.12 dependency. So I exclude that for that library only with

implemenation ("com.xx.yy:1.2.3") { exclude group: 'com.intellij', module: 'annotations' }

over 4 years ago · Santiago Trujillo Report

0

./gradlew app:dependencies

check all dependencies

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!