liangjingkanji / BRV

[使用文档] Android 快速构建 RecyclerView, 比 BRVAH 更简单强大
http://liangjingkanji.github.io/BRV/
MIT License
2.49k stars 317 forks source link

部分一加手机上使用grid会出现Unable to create layer for RecyclerView #400

Closed saki1010 closed 7 months ago

saki1010 commented 8 months ago

描述

直接使用recyclerView.grid(spanCount = 2).dividerSpace(10.dp2px(), DividerOrientation.GRID).setup会出现:JNI DETECTED ERROR IN APPLICATION: JNI CallStaticBooleanMethodV called with pending exception java.lang.IllegalStateException: Unable to create layer for RecyclerView, size 1152x16384 max size 16383 color type 4 has context 1。 设置setHasFixedSize(true)就行了

liangjingkanji commented 8 months ago

这和BRV没关系吧, BRV只是快速创建Adapter而已

你试下不用grid()函数, 自己赋值layoutManager看下

liangjingkanji commented 7 months ago

网上搜索相关错误解决办法吧