Gradle ver.: 4.1.
As resuli in file in file: “/gradle/wrapper/gradle-wrapper.properties” I has the next content:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.1-bin.zip
Android Gradle plugin: “com.android.tools.build:gradle:2.3.3”
In my app’s build.gradle:
apply plugin: 'com.android.application’
apply plugin: 'kotlin-kapt’
apply plugin: ‘kotlin-android’
My steps for build my Android project:
-
Start build(from command line) by: “gradlew build --build-cache”
-
Result:
BUILD SUCCESSFUL in 6m 2s, 412 actionable tasks: 230 executed, 182 up-to-date -
I’m not change anything in my project
-
Run again same command: “gradlew build --build-cache”
-
Result:
BUILD SUCCESSFUL in 2m 38s, 412 actionable tasks: 148 executed, 264 up-to-date -
I’m not change anything in my project
-
Run again same command: “gradlew build --build-cache”
-
Result:
BUILD SUCCESSFUL in 1m 41s, 412 actionable tasks: 135 executed, 277 up-to-date
Questions:
-
Why second and third time the “gradlew build --build-cache” not finish immediately?
-
Why option “–build-cache” not help?
.