Comments (10)
Demo可以运行吗?
你可能是没有添加recyclerview依赖
implementation "androidx.recyclerview:recyclerview:1.1.0"
from brv.
Demo可以运行吗? 你可能是没有添加recyclerview依赖
implementation "androidx.recyclerview:recyclerview:1.1.0"
有的,去掉这个PageRefreshLayout包裹就是正常运行的了,包裹PageRefreshLayout在预览页是灰色的,直接用那个SmartRefreshLayout包裹也是一样情况,估计是我这项目缺少supportv4?用的Androidx跟material的了,UI相关的库版本如下
appcompat : 'androidx.appcompat:appcompat:1.2.0',
material : 'com.google.android.material:material:1.2.1',
recyclerview : 'androidx.recyclerview:recyclerview:1.1.0',
viewpager : 'androidx.viewpager2:viewpager2:1.0.0',
constraintlayout : 'androidx.constraintlayout:constraintlayout:2.1.0',
from brv.
我跑一下你的Demo看看
from brv.
项目中是否存在jcenter库
from brv.
项目中是否存在jcenter库
跟jcenter应该是没关系的。
我先改回去重新编译了几次不行。点击PageRefreshLayout的源码再点击SmartRefreshLayout还是看到其继承的NestedScrollingParent报红的,上面还有其它supportv4相关的全红。
from brv.
你Demo的没问题,我再找找各种可能看看
from brv.
你Demo的没问题,我再找找各种可能看看
Demo里SmartRefreshLayout的源码还是看到其继承的NestedScrollingParent报红的,上面还有其它supportv4相关的全红,但是能编译运行,我的项目里不行,让人费解
from brv.
现在可以了,奇奇怪怪,可能是AS抽风了。
我经过一下测试:
1、一开始想到 添加 api 'androidx.legacy:legacy-support-v4:1.0.0',不行
2、 换成 api 'com.android.support:support-v4:28.0.0',不行
3、在2的基础上使用AS的Refactor->Migrate to Androidx(可本来就是 Androidx项目),然后其实就是把2变为1,居然能编译通过了。
4、在3的基础上,去掉依赖库(其实不就是恢复到最开始啥都没改?),也还是能编译通过
5、ctrl z 一直撤销,提示Undo migrate to Androidx ,确定,之后确实又不行了,然后再尝试Migrate to Androidx提示No xxx migrate to Androidx ,郁闷。
6、重复1 2 3 的情况
总结,这种情况,先api 'com.android.support:support-v4:28.0.0',再Refactor->Migrate to Androidx,就可用编译运行了,即使去掉依赖库也行。反正就是让人摸不着头脑
from brv.
或者试下重启并清除缓存
from brv.
或者试下重启并清除缓存
这个一开始就试过的,没用的,不过现在解决了
from brv.
Related Issues (20)
- 用这个实现,树形结构的列表好使? HOT 3
- 分组 HOT 1
- PageRefreshLayout无法设置多个空缺省页 HOT 4
- ConcatAdapter与HoverLinearLayoutManager同时使用的问题 HOT 6
- BindingAdapter分页加载需求下组的合并的方法
- 这个能实现出iOS通知中心那种效果吗? HOT 1
- 在分组列表中,数据类需要继承ItemExpand,如果不使用DataBing,怎么找到第二组的控件呢? HOT 2
- onRefresh 报错,在引入后使用出现问题 HOT 1
- android studio 源码代码预览,download sources 出现问题 HOT 1
- 请问大佬 怎么实现分组和悬停并存呢?我测试demo里的分组,只有分组展开的时候是悬停的,而且itemHover并未有任何地方动态赋值
- 有没有兼容的 fastbar
- 模块化下使用runtimeOnly依赖,被依赖的library中的列表显示不了内容
- https://github.com/liangjingkanji/BRV/issues/158,侧滑删除的文档打不开了,东哥 HOT 2
- 悬浮问题 HOT 2
- 给BindingAdaptor.onCreateViewHolder中的itemView初始赋值提供一个可以覆写的函数 HOT 1
- 滑动选择
- PageRefreshLayout在refreshing后,失效无法回调和动画无法回弹问题 HOT 13
- 提一个小小建议啊,希望作者适配一下paging3 HOT 1
- 嵌套Recyclerview选择模式问题
- 大佬,最近太忙?代码仓不怎么活跃了?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brv.