You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instructions on adding build dependencies work well, but only provide code for build.gradle files using groovy syntax.
For modern projects should also provide kotlin equivalents (for build.gradle.kts files) to be consistent with other android documentation; converting the task and tasks blocks is non-trivial
If top level project uses (kotlin) build.gradle.kts and build fails with error e.g.
> Cannot reference a Gradle script object from a Groovy closure as these are not supported with the
configuration cache.
there may be a workaround; first check project gradle.properties for this property
org.gradle.configuration-cache=true
and comment out or change to false (modern projects tend to set that value to org.gradle.configuration-cache=true by default)