I have two large Android projects: ProjectA, which...
# caching
s
I have two large Android projects: ProjectA, which uses Gradle 8.3, and ProjectB, which uses Gradle 8.8. When switching between these projects in Android Studio, we often encounter build issues. These are typically resolved by rebooting the machine and clearing the
$HOME/.gradle/cache
directories. Could the difference in Gradle versions be causing these problems, or is there another explanation? Both projects are large, and the time spent waiting for builds to complete when switching between them is significant. Is there a reliable process we can follow to make switching between projects smoother? Are there any best practices we should adopt?
c
Have you tried stopping the gradle daemon when switching?
s
We don't always do that when we switch between projects. Will try to remember that next time and see if that makes things better. Is there a reason to believe it will make things better?
c
It will consume (possibly considerable) memory. The daemon is tied to the gradle version so you’ll have at least a couple of them.
👍 1