With the update of Android Studio to 3.4 gradle was updated to 5.1.1. With this new version I tried to profile the build speed (https://developer.android.com/studio/build/optimize-your-build#profile) by executing the following command: gradlew --profile --recompile-scripts --offline --rerun-tasks assemble<Flavor><Buildtype>
.
Sadly the option '--recompile-scripts'
is not known anymore. Is there any replacement for this option?
It has been removed by the Gradle team :https://github.com/gradle/gradle/issues/1425 Try cleanBuildCache before build
Downgrading the build.gradle from classpath 'com.android.tools.build:gradle:3.4.0'
to classpath 'com.android.tools.build:gradle:3.2.1'
(or any other version) may help you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With