MichaelRocks / paranoid

String obfuscator for Android applications.
Apache License 2.0
673 stars 79 forks source link

Issue with new "Configuration cache" optimization #58

Open AndroidDeveloperLB opened 2 years ago

AndroidDeveloperLB commented 2 years ago

Android Studio now has a new build analyzer. One of the things it suggested to try out to reduce build time , is something that when enabled, seems to have issues with this plugin alone.

classpath 'io.michaelrocks:paranoid-gradle-plugin:0.3.5'

image

When trying it out, I get this error:

image

I believe that it's talking about the org.gradle.unsafe.configuration-cache=true flag that was suggested to be used here:

https://proandroiddev.com/how-we-reduced-our-gradle-build-times-by-over-80-51f2b6d6b05b

If it is this one, I think it's still experimental, but now it's the best time to check it out, to make sure that stable version of the IDE won't have to face this issue, as it might be enabled by default.

IDE information:

Android Studio Bumblebee | 2021.1.1 Beta 2 Build #AI-211.7628.21.2111.7824002, built on October 14, 2021 Runtime version: 11.0.11+9-b60-7590822 amd64 VM: OpenJDK 64-Bit Server VM by Oracle Corporation Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 8048M Cores: 12 Registry: external.system.auto.import.disabled=true, ide.settings.move.mouse.on.default.button=true, debugger.watches.in.variables=false Non-Bundled Plugins: GenerateSerialVersionUID (3.0.3), GenerateSerializationHelpers (1.0.6), Show As ... (1.0.3), com.dubreuia (2.2.0), com.intellij.marketplace (211.7628.36), String Manipulation (8.22.203.000.1), org.jetbrains.kotlin (211-1.6.0-RC2-release-765-AS7442.40), com.google.mad-scorecard (1.2), com.ppismerov.ksvu (0.0.1), izhangzhihao.rainbow.brackets (6.21), org.intellij.plugins.markdown (211.7142.37)