叕掉坑,百度一些方法都试过,无奈依然无解,所以又厚颜无耻来这里请教大家了。
看着资料对撸代码,资料中这么写的 “"" 显示的列表我们使用 RecyclerView,所以你需要在 build.gradle 中 增加一个新的依赖: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile "com.android.support:appcompat-v7:$support_version" compile "com.android.support:recyclerview-v7:$support_versio n" ... } """
按照资料填完后,IDE 报错有问题,识别不了我填的,想了想肯定是依赖问题,我直接百度如何添加依赖,按照网上相关资料在 dependencies 手动添加了,后改成 ”“" dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile "com.android.support:appcompat-v7:26.0.2" compile "com.android.support:recyclerview-v7:26.0.2" } """ SYNC 后不会报错,但是还是用不了 RecyclerView ,为红色显示 Unresolved reference... 有没有能够指导一下的老哥,AS 使用中每天看资料敲代码还没查 BUG 的时间多......