Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

androidExtensions "parcelize" not work in Kotlin 1.3.30

Tags:

android

kotlin

it work fine with ext.kotlin_version = '1.3.21'

Unresolved reference: Parcelize” after updating to Kotlin 1.3.30

apply plugin: 'kotlin-android-extensions'

androidExtensions {
    experimental = true
    features = ["parcelize"]
}
like image 490
庄 鹏 Avatar asked Dec 02 '22 10:12

庄 鹏


1 Answers

I find the error

Kotlin plugin should be enabled before 'kotlin-android-extensions'

so change the order to

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

it work fine (:з」∠) 。

good luck to you.

like image 115
庄 鹏 Avatar answered Dec 11 '22 16:12

庄 鹏