I tried all the methods which I found in search, but not helped.
Our company app already has 8 modules.
I had split one more feature, and it does not make significant build-time changes when I build in Android Studio. (about 7min 30sec)
And in Jenkins, before my split task, it usually takes time about 20 min(because of all the things re-download, not cached), but after the split task, it takes time about 30 minutes.
I profiled these tasks with --profile option, I found that ':app:minifyStageForQAWithR8' task was significantly slow after my split work. (more than 10 min)
But I don't know what parts I have to check and fix.. please help
Here is information about my project status.
new module's proguard-rules.pro file is empty.
new module's build.gradle
plugins {
id 'com.android.library'
id 'kotlin-android'
}
apply from: '../default.gradle'
android {
defaultConfig {
versionCode 1
versionName "1.0"
}
lintOptions {
abortOnError false
}
}
dependencies {
implementation project(':base')
}
- build.properties status
android.enableBuildCache=true
org.gradle.jvmargs=-Xmx4g -Dkotlin.daemon.jvm.options\="-Xmx2048M" -noverify
org.gradle.caching=true
org.gradle.parallel=true
org.gradle.configureondemand=true
kapt.incremental.apt=true
android.useAndroidX=true
android.enableJetifier=true
include_leakcanary=true