Android Studio升级gradle的kotlin版本之后报错API 'variant.getPackageLibrary()' is obsolete


今天我将一个项目的kotlin插件版本升级到1.3.31会出现下面警告

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.

仔细检查了一遍发现不是自己的项目配置内容导致的,应该是插件本身的问题,我降低到版本1.3.21也是没有问题的,所以这个问题直接忽略就行了


内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://11000011.com/?id=182

« 上一篇 下一篇 »

我要评论

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

主机推荐

  • 搬瓦工