Tôi gặp lỗi này trong khi biên dịch kiểm tra Thiết bị đo đạc.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
Tôi đã cố bật/tắt multiDexEnabled
trong số build.gradle
nhưng không có gì hữu ích.
My android
của build.gradle
:
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
}
}
Bạn đã kiểm tra điều này chưa? - 'Lỗi: com.android.dx.cf.code.SimException: phương thức giao diện mặc định hoặc tĩnh được sử dụng mà không có --min-sdk-version> = 24' Bạn có gì để kiểm tra' min-sdk' 'build.gradle của bạn ' – Dayan
Tôi đang cập nhật câu hỏi của mình –
trong' gradle.properties' thêm 'android.enableD8 = true'. – Sunny