Getting unresolved reference on @Serializable in commonMain of Share module in KMM project

Viewed 385

enter image description here

The IDE is highlighting the those serialization imports as unresolved. But when run the app I am getting the result here.

class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)

    Log.d("myTag",Model("venky").toJson()) //I am getting in logcat {"mod":"venky"}
}

}

It's working but showing error.

0 Answers
Related