title: Android Studio 3.0 DexArchiveBuilderException
body: <p>I'm having this error whilst compiling Instrumentation tests.</p>
  <blockquote>
  <p>Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/rafaelruizmunoz/SourceTree/Weather/app/build/intermediates/transforms/desugar/androidTest/debug/1.jar</p>
  <p>Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/assertj/core/api/LongPredicateAssert.class</p>
  <p>Error:com.android.dx.cf.code.SimException: default or static interface method used without --min-sdk-version &gt;= 24</p>
  </blockquote>
  <p>I tried to enable/disable <code>multiDexEnabled</code> in my <code>build.gradle</code> but nothing helped.</p>
  <p>My <code>android</code> of <code>build.gradle</code>:</p>
  <pre><code>android {
      compileSdkVersion 27
      defaultConfig {
          applicationId &quot;com.**.weather&quot;
          minSdkVersion 16
          targetSdkVersion 27
          versionCode 1
          versionName &quot;1.0&quot;
          testInstrumentationRunner &quot;android.support.test.runner.AndroidJUnitRunner&quot;
          multiDexEnabled = true
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      compileOptions {
          targetCompatibility 1.8
          sourceCompatibility 1.8
      }
  }
  </code></pre>