Task :app:lintVitalRelease D:\MyWork\android\app\build.gradle:23: Error: Google Play requires that apps target API level 26 or higher. [ExpiredTargetSdkVersion] targetSdkVersion 24 ~~~~~~~~~~~~~~~~~~~
Explanation for issues of type "ExpiredTargetSdkVersion": As of the second half of 2018, Google Play requires that new apps and app updates target API level 26 or higher.
Configuring your app to target a recent API level ensures that users benefit from significant security and performance improvements, while still allowing your app to run on older Android versions (down to the minSdkVersion).
To update your targetSdkVersion, follow the steps from "Meeting Google Play requirements for target API level", https://developer.android.com/distribute/best-practices/develop/target-sdk.html