title: Error: json defines classes that conflict with classes now provided by Android
body: <p>I got the following error when doing a release build on Android Studio 3</p>
  
  <p><strong>Error:Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]</strong></p>
  
  <p>The following is my dependencies:</p>
  
  <pre><code>dependencies {
      compile fileTree(include: ['*.jar'], dir: 'libs')
      androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
          exclude group: 'com.android.support', module: 'support-annotations'
      })
      compile 'com.android.support:appcompat-v7:26.0.1'
      compile 'com.android.support:support-v4:26.0.1'
      compile 'org.greenrobot:eventbus:3.0.0'
      compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
      compile 'com.evernote:android-job:1.2.0'
      compile 'com.amitshekhar.android:android-networking:1.0.0'
      compile 'com.facebook.stetho:stetho:1.5.0'
      compile "me.tatarka.redux:redux-core:0.10"
      compile "me.tatarka.redux:redux-android:0.10"
      compile "me.tatarka.redux:redux-android-lifecycle:0.10"
      compile "me.tatarka.redux:redux-thunk:0.10"
      annotationProcessor "org.immutables:value:2.5.5" // &lt;-- for annotation processor
      provided "org.immutables:value:2.5.5" // for annotations
      provided "org.immutables:builder:2.5.5" // for annotations
  
      compile "me.tatarka.redux:redux-monitor:0.10"
      testCompile 'junit:junit:4.12'
  }
  </code></pre>
  
  <p>It's saying json but I can't find which of the the above dependencies is causing the problem.</p>
  
  <p>Here is what I get when I run</p>
  
  <pre><code>gradlew assembleRelease
  </code></pre>
  
  <blockquote>
    <p>Task :app:lintVitalRelease
    /Users/kruyvanna/Projects/key/HappyKey_Android2/app/build.gradle: Error: json defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]</p>
  </blockquote>
  
  <p>Explanation for issues of type "DuplicatePlatformClasses":
     There are a number of libraries that duplicate not just functionality of
     the Android platform but using the exact same class names as the ones
     provided in Android -- for example the apache http classes. This can lead
     to unexpected crashes.</p>
  
  <p>To solve this, you need to either find a newer version of the library which
     no longer has this problem, or to repackage the library (and all of its
     dependencies) using something like the jarjar tool, or finally, rewriting
     the code to use different APIs (for example, for http code, consider using
     HttpUrlConnection or a library like okhttp.)</p>
  
  <p>1 errors, 0 warnings</p>
  
  <p>FAILURE: Build failed with an exception.</p>
  
  <ul>
  <li><p>What went wrong:
  Execution failed for task ':app:lintVitalRelease'.</p>
  
  <blockquote>
    <p>Lint found fatal errors while assembling a release target.</p>
  </blockquote>
  
  <p>To proceed, either fix the issues identified by lint, or modify your build script as follows:
  ...
  android {
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
  }
  ...</p></li>
  <li><p>Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</p></li>
  <li><p>Get more help at <a href="https://help.gradle.org" rel="noreferrer">https://help.gradle.org</a></p></li>
  </ul>