Once we updated the AGP version in the classpath to 7.3.1, we still need to point to the latest stable version of the AGP.
https://github.com/gradle/android-cache-fix-gradle-plugin/blob/main/build.gradle#L26
The new variant API is available in recent versions and it's a pre-requisite to start reworking the workaround variant logic with types provided in the new API.
The old variant is going to be removed in AGP 9.