Parcelize annotations from package 'kotlinx.android.parcel' are deprecated. Change package to 'kotlinx.parcelize'

Parcelize annotations from package 'kotlinx.android.parcel' are deprecated. Change package to 'kotlinx.parcelize'

I was using import statement like below when I was getting this warning
import kotlinx.android.parcel.Parcelize
Finally, replace old import with new import
import kotlinx.parcelize.Parcelize
Update to latest kotlin version - 1.4.20 and use below plugin

apply plugin: 'kotlin-parcelize'

No comments:

Post a Comment

Popular Posts