编译仪器测试时出现此错误。
错误:com.android.builder.dexing.DexArchiveBuilderException:无法处理/Users/rafaelruizmunoz/SourceTree/Weather/app/build/intermediates/transforms/desugar/androidTest/debug/1.jar
错误:com.android.builder.dexing.DexArchiveBuilderException:分解org / assertj /
core / api / LongPredicateAssert.class时出错
错误:com.android.dx.cf.code.SimException:默认或静态接口方法不带–min-sdk-version> = 24
我尝试启用/禁用multiDexEnabled自己的功能,build.gradle但无济于事。
我android的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
}
}
494

被折叠的 条评论
为什么被折叠?



