Issue
Google is recommending users to migrate from kotlin-android-extensions
to kotlin-parcelize
.
However, Gradle sync fails with the following error:
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)
Where is the plugin located?
Solution
kotlin-parcelize
ships with Kotlin Plugin 1.4.20
(Release Announcement: Deprecation of Kotlin Android Extensions)
You need to upgrade your Kotlin versions and run Gradle sync again.
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.20"
}
Answered By - Brown Smith
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.