Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

混淆以后报错 tangram 3.3.6 #183

Open
anton-ljf opened this issue Nov 4, 2019 · 2 comments
Open

混淆以后报错 tangram 3.3.6 #183

anton-ljf opened this issue Nov 4, 2019 · 2 comments

Comments

@anton-ljf
Copy link

后效以后报错,
混淆代码如下
-keepattributes InnerClasses
-keep class com.alibaba.android.vlayout.ExposeLinearLayoutManagerEx { *; }
-keep class android.support.v7.widget.RecyclerView$LayoutParams { *; }
-keep class android.support.v7.widget.RecyclerView$ViewHolder { *; }
-keep class android.support.v7.widget.ChildHelper { ; }
-keep class android.support.v7.widget.ChildHelper$Bucket { ; }
-keep class android.support.v7.widget.RecyclerView$LayoutManager { ; }
-keep public class com.tmall.wireless.tangram.core.adapter.**{
;}
-keep public class com.alibaba.android.vlayout.VirtualLayoutManager{
;}
-keep class com.alibaba.android.vlayout.VirtualLayoutManager$
{
*;
}

报错如下
com.alibaba.android.vlayout.VirtualLayoutManager$LayoutViewHolder cannot be cast to com.tmall.wireless.tangram.core.adapter.BinderViewHolder
at com.tmall.wireless.tangram.core.adapter.GroupBasicAdapter.onViewRecycled(:60)
at androidx.recyclerview.widget.RecyclerView$Recycler.dispatchViewRecycled(:6485)
at androidx.recyclerview.widget.RecyclerView$Recycler.addViewHolderToRecycledViewPool(:6256)
at androidx.recyclerview.widget.RecyclerView$Recycler.b(:6217)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.scrapOrRecycleView(:8945)
at androidx.recyclerview.widget.RecyclerView$LayoutManager.detachAndScrapAttachedViews(:8930)
at com.alibaba.android.vlayout.VirtualLayoutManager.detachAndScrapAttachedViews(:1448)
at com.alibaba.android.vlayout.ExposeLinearLayoutManagerEx.onLayoutChildren(:343)
at com.alibaba.android.vlayout.VirtualLayoutManager.onLayoutChildren(:536)
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(:3924)

@anton-ljf
Copy link
Author

这个项目是凉了么

@wt959790
Copy link

你混淆RecyclerView不应该也是Androidx的包名吗?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants