以下のようなエラーが出た。

DSL element 'android.lintOptions.check' is obsolete and has been replaced with 'android.lintOptions.checkOnly'.
It will be removed in version 5.0 of the Android Gradle plugin.
`check` has been renamed to `checkOnly` to make it clear that it will turn off all other checks than those explicitly listed. If that is what you actually intended, use `checkOnly`; otherwise switch to `enable`.

解決方法

以下のように変更する。

lintOptions {
    check 'Interoperability'
}

lintOptions {
    checkOnly 'Interoperability'
}

多分解決する。