title: Android realm can't build javax/annotation/CheckForNull.class
body: <pre><code>classpath "io.realm:realm-gradle-plugin:4.2.0"
  </code></pre>
  
  <p>then</p>
  
  <pre><code>apply plugin: 'realm-android'
  </code></pre>
  
  <p>then build</p>
  
  <blockquote>
    <p>Error:Execution failed for task
    ':app:transformDexArchiveWithDexMergerForDebug'.</p>
    
    <blockquote>
      <p>com.android.build.api.transform.TransformException: com.android.tools.r8.errors.CompilationError: Program type already
      present: javax.annotation.CheckReturnValue</p>
    </blockquote>
  </blockquote>
  
  <p>more:</p>
  
  <pre><code>Caused by: java.io.IOException: Duplicate zip entry [32.jar:javax/annotation/CheckForNull.class]
      at proguard.io.JarWriter.getOutputStream(JarWriter.java:138)
      at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:106)
      at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:106)
      at proguard.io.FilteredDataEntryWriter.getOutputStream(FilteredDataEntryWriter.java:92)
  </code></pre>
  
  <p><strong>My Gradle</strong></p>
  
  <pre><code>dataBinding.enabled = true
  
  compileOptions {
      sourceCompatibility JavaVersion.VERSION_1_8
      targetCompatibility JavaVersion.VERSION_1_8
  }
  
  implementation "com.android.databinding:compiler:3.1.0-alpha04"
  annotationProcessor 'com.android.databinding:compiler:3.1.0-alpha04'
  
  implementation 'com.android.support:exifinterface:27.0.2'
  implementation 'com.android.support:appcompat-v7:27.0.2'
  implementation 'com.android.support:recyclerview-v7:27.0.2'
  implementation 'com.android.support:cardview-v7:27.0.2'
  implementation 'com.android.support:design:27.0.2'
  
  implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  implementation 'com.android.support:multidex:1.0.2'
  
  implementation 'io.reactivex.rxjava2:rxjava:2.0.0-RC2'
  implementation 'io.reactivex.rxjava2:rxandroid:2.0.0-RC1'
  
  implementation 'com.squareup.retrofit2:retrofit:2.1.0'
  implementation 'com.squareup.retrofit2:converter-scalars:2.0.0'
  implementation 'com.squareup.retrofit2:converter-jackson:2.0.0'
  implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
  implementation 'com.squareup.okhttp3:logging-interceptor:3.3.1'
  
  implementation 'org.greenrobot:eventbus:3.0.0'
  implementation 'com.github.bumptech.glide:glide:4.3.1'
  
  implementation 'com.google.firebase:firebase-core:11.6.2'
  implementation 'com.google.firebase:firebase-messaging:11.6.2'
  implementation 'com.google.firebase:firebase-crash:11.6.2'
  
  implementation 'com.jakewharton.rxbinding:rxbinding:0.4.0'
  implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
  implementation 'com.dlazaro66.qrcodereaderview:qrcodereaderview:2.0.3'
  </code></pre>
  
  <p><strong>some info:
  everything worked like a charm, before I wanted to import the Realm library to my project</strong></p>