android - recyclerview 无法同步或创建
问题描述
我需要将 recyclerview 添加到我的项目中,但 recyclerview 的元素没有出现。
这是我的依赖项:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.google.firebase:firebase-database:11.8.0'
implementation 'com.google.firebase:firebase-auth:11.8.0'
implementation 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:28.0.0'
解决方案
推荐阅读
- regex - 键/值匹配的有效正则表达式
- android - 设置输出文件名/Gradle 时不支持绝对路径
- python - Python 正则表达式从 unicode 检索数字、点和破折号
- python - 使用极限定义求分段函数的导数
- sql - 试图改进我的代码,它不再起作用
- reactjs - 一个 NavLink 是否可以为 2 页提供活动课程?
- charts - Flutter 图表示例/doc/basics
- android - 为什么从 android sqlite 表中删除单行后出现错误
- database - 如何在 Postgres 中对远程数据库执行 GRANT 语句?
- javascript - 为什么
无限触发 ngDoCheck 和 trackBy?