WARNING: API 'variant.getPackageLibrary()' is obsolete and has been replaced with 'variant.getPackageLibraryProvider()' : <p>I just upadated kotlin to 1.3.30 and I now get this error when syncing gradle:</p>

<blockquote>
  <p>WARNING: API 'variant.getPackageLibrary()' is obsolete and has been
  replaced with 'variant.getPackageLibraryProvider()'. It will be
  removed at the end of 2019. For more information, see
  <a href="https://d.android.com/r/tools/task-configuration-avoidance" rel="noreferrer">https://d.android.com/r/tools/task-configuration-avoidance</a>. To
  determine what is calling variant.getPackageLibrary(), use
  -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace. Affected Modules: hydatabase</p>
</blockquote>

<p>Here is my <code>build.gradle</code>:</p>

<pre><code>apply plugin: 'com.squareup.sqldelight'
apply plugin: 'kotlin-multiplatform'
apply plugin: 'com.android.library'

android {
    compileSdkVersion 28
    defaultConfig {
        minSdkVersion 19
    }
    lintOptions {
        abortOnError false
    }
}

sqldelight {
    Database {
        packageName = "com.company.hydatabase"
    }
}

kotlin {
    targets {
        fromPreset(presets.jvm, 'jvm')
        fromPreset(presets.android, 'android')
    }

    sourceSets {
        commonMain.dependencies {
            api 'org.jetbrains.kotlin:kotlin-stdlib-common'
        }
        jvmMain.dependencies {
            api 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
            // ICU4J: Use DecimalFormat
            // Get rid of this when minSDKLevel = API 24 - Nougat (7.0)
            // https://developer.android.com/guide/topics/resources/internationalization.html
            api 'com.ibm.icu:icu4j:60.2'
        }
        androidMain.dependencies {
            implementation 'org.jetbrains.kotlin:kotlin-stdlib'
            api "com.squareup.sqldelight:android-driver:1.1.1"
        }
        androidMain.dependsOn jvmMain
    }
}

task copyDatabase(type: Copy) {
    from "${rootProject.file('hyappcommon/Databases/').path}"
    into "${rootProject.file('hydatabase/src/main/assets/databases/').path}"
    include '**/*.sqlite'
}

preBuild.dependsOn(copyDatabase)

// workaround for https://youtrack.jetbrains.com/issue/KT-27170
configurations {
    compileClasspath
}
</code></pre>
