계측 테스트를 컴파일하는 동안이 오류가 발생합니다. Android Studio 3.0 DexArchiveBuilderException
나는 나의Error:com.android.builder.dexing.DexArchiveBuilderException: Failed to process /Users/rafaelruizmunoz/SourceTree/Weather/app/build/intermediates/transforms/desugar/androidTest/debug/1.jar
Error:com.android.builder.dexing.DexArchiveBuilderException: Error while dexing org/assertj/core/api/LongPredicateAssert.class
Error:com.android.dx.cf.code.SimException: default or static interface method used without --min-sdk-version >= 24
build.gradle
에서
multiDexEnabled
를 활성화/비활성화 시도했지만 아무것도 도움이되지 않습니다.
android
build.gradle
의
내 :
android.enableD8=true
를 추가
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.**.weather"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
targetCompatibility 1.8
sourceCompatibility 1.8
}
}
이것을 확인하셨습니까? -'Error : com.android.dx.cf.code.SimException : --min-sdk-version> = 24없이 디폴트 또는 정적 인터페이스 메쏘드 사용'min-sdk' check'build.gradle ' – Dayan
'gradle.properties'에 내 질문 –
을 업데이트하고'android.enableD8 = true'를 추가하십시오. – Sunny