0

I have used Parcelize property of Android Extension to get Parcelable data class in Kotlin . It greatly reduces boiler plate code . Initially it was in experimental mode but now its stable . I have followed tutorial from below link Parcelable Link where I have made changes in gradle to add

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



androidExtensions {
    features = ["parcelize"]
}

Initially , it did not give any compiler error , but on running the app , it gives unresolved reference error for viewbinding did with layout from kotlin . The import are good , and it works fine if Parcelize property is not included .

import kotlinx.android.synthetic.main.activity.*

What could be the issue ? Does it only tells to use Parcelize property of android extension and leave other properties included from android-extension plugin ?

Yatin
  • 2,969
  • 9
  • 34
  • 68

0 Answers0