"Unresolved reference kotlinx" error

Asked 2 years ago, Updated 2 years ago, 74 views

An error occurred when I upgraded Android studio to 1.3.2.

import kotlinx.android.synthetic.activity_userpage.pager
import kotlinx.android.synthetic.activity_userpage.tabs

"When you hover your cursor over the ""kotlinx"" part in red letters, ""Unresolved reference kotlinx"" appears."
When I open the light bulb mark, it says "create package'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If you know how to solve this problem, please.

android java android-studio kotlin

2022-09-30 20:57

1 Answers

Sorry I don't know Japanese but Chrome was possible to translate the page.I had this same issue and fixed it by adding:

classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"

To my dependencies in my kotlin buildpath in my apps build.gradle

I don't understand Japanese, but I was able to translate it with Chrome.I had the same problem, but I was able to fix it by adding it.

classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"

Add this build path to dependencies in build.gradle.


2022-09-30 20:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.