找回密码
 立即注册
搜索

互动交流 快应用偶然报如下错误,不知道是不是官方支持的不完善

2
回复
2097
查看
[复制链接]

7

主题

12

帖子

95

积分

 楼主| 2019-6-26 14:36:34 显示全部楼层 |阅读模式
  1. java.lang.ClassCastException: org.hapjs.widgets.c cannot be cast to org.hapjs.widgets.g.f
  2. at org.hapjs.widgets.i.e.g.setComponent(SourceFile:231)
  3. at org.hapjs.component.Component.setHostView(SourceFile:214)
  4. at org.hapjs.widgets.b.a$a.a(SourceFile:543)
  5. at org.hapjs.widgets.b.a$a.a(SourceFile:552)
  6. at org.hapjs.widgets.b.a$a.a(SourceFile:552)
  7. at org.hapjs.widgets.b.a$a.a(SourceFile:481)
  8. at org.hapjs.widgets.b.a$a.onBindViewHolder(SourceFile:460)
  9. at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(SourceFile:6279)
  10. at android.support.v7.widget.RecyclerView$Adapter.bindViewHolder(SourceFile:6312)
  11. at android.support.v7.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline(SourceFile:5258)
  12. at android.support.v7.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(SourceFile:5521)
  13. at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:5363)
  14. at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:5359)
  15. at android.support.v7.widget.LinearLayoutManager$LayoutState.next(SourceFile:2141)
  16. at android.support.v7.widget.GridLayoutManager.layoutChunk(SourceFile:556)
  17. at android.support.v7.widget.LinearLayoutManager.fill(SourceFile:1488)
  18. at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(SourceFile:585)
  19. at android.support.v7.widget.GridLayoutManager.onLayoutChildren(SourceFile:170)
  20. at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(SourceFile:3506)
  21. at android.support.v7.widget.RecyclerView.dispatchLayout(SourceFile:3254)
  22. at android.support.v7.widget.RecyclerView.consumePendingUpdateOperations(SourceFile:1593)
  23. at android.support.v7.widget.RecyclerView$ViewFlinger.run(SourceFile:4625)
  24. at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1065)
  25. at android.view.Choreographer.doCallbacks(Choreographer.java:877)
  26. at android.view.Choreographer.doFrame(Choreographer.java:805)
  27. at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1051)
  28. at android.os.Handler.handleCallback(Handler.java:873)
  29. at android.os.Handler.dispatchMessage(Handler.java:99)
  30. at android.os.Looper.loop(Looper.java:201)
  31. at android.app.ActivityThread.main(ActivityThread.java:6806)
  32. at java.lang.reflect.Method.invoke(Native Method)
  33. at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
  34. at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
复制代码
回复

使用道具 举报

8

主题

174

帖子

910

积分

2019-8-1 18:38:54 显示全部楼层
我知道一种情况会这样, div里面写了一个span。 一般用到span的情况可能用text或者div 比较多
回复

使用道具 举报

7

主题

12

帖子

95

积分

 楼主| 2019-8-2 10:38:28 显示全部楼层
左耳毛毛 发表于 2019-8-1 18:38 我知道一种情况会这样, div里面写了一个span。 一般用到span的情况可能用text或者div 比较多 ...
谢谢您,我没用span标签呢,很偶然的情况会报这个错,不怎么样必显,还不知道具体原因
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册