Google Play 上架时 ,要求应用的 ” target API level ” 必须大于等于 ,大部分情况不用上架谷歌商店直接关闭 lint 检查即可 。
方法1:
app的build.gradle ,在 targetSdkVersion 28 一行上增加一行注释:
//noinspection ExpiredTargetSdkVersion 
targetSdkVersion 28
方法2:
app的build.gradle,android块里设置
android {
  lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
  }