I have an Android project which when running the build takes approximately 10 hours (and adding) executing the task:
app:transformDexArchiveWithExternalLibsDexMergerForDebug
I imagine this is not normal, what can you owe? and what can I do to correct it?
At the moment I have detected that the problem is associated with an external lib that I need to use since when removing it the build ends in no more than 2 minutes.
The lib that I am trying to use is the "org.apache.tika"
.
This is my build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "gvideo.sgutierc.cl.videorecorder"
minSdkVersion 21
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:cardview-v7:27.0.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.google.android.gms:play-services:11.8.0'
implementation 'com.android.support:mediarouter-v7:27.0.1'
implementation 'com.android.support:design:27.0.1'
implementation 'com.android.support:support-v13:27.0.1'
implementation group: 'org.apache.tika', name: 'tika-parsers', version: '1.14'
api files('libs/lib.file.metadata.jar')
}