Kotlin1.3.30插件的一个小警告

2022-06-19 13:49:06 浏览数 (1)

Kotlin1.3.30插件的一个小警告

当项目中,新建一个module,在module对kotlin进行依赖:

代码语言:javascript复制
apply plugin: 'com.android.library'apply plugin: 'kotlin-android'android {    compileSdkVersion 28    defaultConfig {        minSdkVersion 19        targetSdkVersion 28    }}dependencies {    implementation fileTree(dir: 'libs', include: ['*.jar'])    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"}

执行编译的时候,控制台下会提示:

代码语言:javascript复制
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 https://d.android.com/r/tools/task-configuration-avoidance.REASON: The Kotlin plugin is currently calling this API. We are working to solve this.WARNING: Debugging obsolete API calls can take time during configuration. It's recommended to not keep it on at all times.Affected Modules: mylibrary

老群被封, 新Q群709287944

0 人点赞