【问题标题】:recyclerView - unresolved reference error in Android Studio using KotlinrecyclerView - 使用 Kotlin 的 Android Studio 中未解决的参考错误
【发布时间】:2021-03-14 13:54:39
【问题描述】:

下面提到的插件都在gradle文件里

应用插件:'com.android.application' 应用插件:'kotlin-android' 应用插件:'kotlin-android-extensions'

下面的依赖也同样加入

实现'androidx.recyclerview:recyclerview:1.1.0'

也添加了这个;

实现'com.android.support:recyclerview-v7:25.3.1'

我在OnCreate Funtionenter image description here写recyclerView时出现错误

您能否建议如何解决该错误。

【问题讨论】:

标签: android android-studio kotlin android-recyclerview


【解决方案1】:

请检查 rein the 的 apt 版本

  app->  project structure->  dependencies-> + symbol -> library dependencies

试试看

【讨论】:

    猜你喜欢
    • 2023-01-17
    • 2017-08-08
    • 2019-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-02
    • 1970-01-01
    • 2019-10-17
    相关资源
    最近更新 更多