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 –