Google 建议用户从 kotlin-android-extensions
迁移至kotlin-parcelize
.
但是,Gradle 同步失败并出现以下错误:
Plugin [id: 'kotlin-parcelize'] was not found in any of the following sources:
- Gradle Core Plugins (not a core plugin, please see https://docs.gradle.org/6.1.1/userguide/standard_plugins.html for available core plugins)
- Plugin Repositories (plugin dependency must include a version number for this source)
插件在哪里?
最佳答案
kotlin-parcelize
附带 Kotlin 插件 1.4.20
( Release Announcement : 弃用 Kotlin Android 扩展)
您需要升级 Kotlin 版本并再次运行 Gradle 同步。
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
}
关于android - 插件 'kotlin-parcelize' 未找到,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64981310/