isSyncing

val Project.isSyncing: Boolean(source)

Returns true if this execution of Gradle is for an Android Studio Gradle Sync. We're considering both the no-task invocation of Gradle that AS uses to build its model, and the invocation of "generateXSources" for each project that follows it. (We may want to track these in the future too, but for now they're pretty noisy.)