Here, the warning disappears if an = is added:
old, with warning:
compileSdk 36
new, warning disappears:
compileSdk = 36