Reposted by Mike Penz
TIL you can get IntelliJ to sync project with later AGP version than it officially supports (e.g. one that Android Studio supports and is sometimes required for latest Compose etc) by setting following in idea.properties
gradle.ide.support.future.agp.versions=true
idea.properties