0
我开始开发xposed模块,但现在出现一个奇怪的错误。 我用RecyclerView无法转换为Xposed上的RecyclerView
RecyclerView player_recycler_view=(RecyclerView)card_content.getChildAt(2)
得到RecyclerView。 card_content
是RecyclerView的父级。
我得到这个错误
java.lang.ClassCastException: android.support.v7.widget.RecyclerView cannot be cast to android.support.v7.widget.RecyclerView
这是没有意义的!与card_content
的其他孩子一切工作正常。
预先感谢您!
可能是一个类加载器的问题? http://stackoverflow.com/questions/826319/classcastexception-when-casting-to-the-same-class –