मुझे इंस्ट्रुमेंटेशन परीक्षणों को संकलित करते समय यह त्रुटि हो रही है।एंड्रॉइड स्टूडियो 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
को निष्क्रिय करने की कोशिश की लेकिन कुछ भी मदद की।
मेरे build.gradle
की android
:
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
}
}
क्या आपने इसमें जांच की? - 'त्रुटि: com.android.dx.cf.code.SimException: डिफ़ॉल्ट या स्थिर इंटरफ़ेस विधि बिना --min-sdk-version> = 24' आपके' min-sdk' check 'build.gradle के लिए क्या है ' – Dayan
मैं' gradle.properties' में अपना प्रश्न –
अपडेट कर रहा हूं 'android.enableD8 = true'। – Sunny