I am facing this error during the build: "D8 does not support main-dex inputs and outputs when compiling to API level 21 and above"
If i set minifyEnabled to true in debug buildType everything works fine, but if i set it to false i just get this error.
My gradle file:
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.generalbytes.batm"
minSdkVersion 17
targetSdkVersion 22
multiDexEnabled true
ndk {
abiFilters 'armeabi-v7a'
}
}
useLibrary 'org.apache.http.legacy'
testOptions {
unitTests.all {
enabled !useDummyBitRafael.toBoolean()
}
}
signingConfigs {
release {
storeFile rootProject.file(releaseStoreFile)
storePassword releaseStorePassword
keyAlias releaseKeyAlias
keyPassword releaseKeyPassword
}
debug {
storeFile rootProject.file(releaseStoreFile)
storePassword releaseStorePassword
keyAlias releaseKeyAlias
keyPassword releaseKeyPassword
}
}
buildFeatures {
dataBinding = true
viewBinding = true
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
lintOptions {
tasks.lint.enabled = false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
testOptions {
unitTests.returnDefaultValues = true
}
Any ideas?