Just had the reverse happen:
compileSdk shown as deprecated, changed it to compileSdkVersion and the warning has gone?
compileSdk
compileSdkVersion