The ‘kotlin-android-extensions’ Gradle plugin is deprecated
最近跑编译的时候,经常有个警告
The 'kotlin-android-extensions' Gradle plugin is deprecated.
Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
意思是说kotlin-android-extensions
已经废弃了,让我用kotlin-parcelize
文章来源:https://www.toymoban.com/news/detail-516016.html
在build.gradle
中需要如下修改:文章来源地址https://www.toymoban.com/news/detail-516016.html
apply plugin: 'kotlin-android'
//apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-parcelize'
到了这里,关于【Android】The ‘kotlin-android-extensions‘ Gradle plugin is deprecated的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!