-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
after proguard added #122
Comments
@mehdi-salehi Can you show the part of the code that caused this error? |
|
[FIX] I'm keeping everything in my proguard.txt. It's not a good solution but you can run the application. I suggest improve this for we can optimize apk size!
|
Hi! For working with Proguard you need to add this rules:
Also I added this to Readme. https://github.com/stfalcon-studio/ChatKit#proguard |
This issue should be reopen, as detailed here: #210 |
E/UncaughtException: java.lang.UnsupportedOperationException: Somehow we couldn't create the ViewHolder for message. Please, report this issue on GitHub with full stacktrace in description.
at com.....chat.MessageHolders.getHolder(SourceFile:413)
at com......chat.MessageHolders.getHolder(SourceFile:396)
at com......chat.MessageHolders.getHolder(SourceFile:329)
at com......chat.MessagesListAdapter.onCreateViewHolder(SourceFile:83)
at com......chat.MessagesListAdapter.onCreateViewHolder(SourceFile:31)
at android.support.v7.widget.RecyclerView$Adapter.createViewHolder(SourceFile:6488)
at android.support.v7.widget.RecyclerView$Recycler.a(SourceFile:5675)
at android.support.v7.widget.RecyclerView$Recycler.a(SourceFile:5558)
at android.support.v7.widget.RecyclerView$Recycler.getViewForPosition(SourceFile:5554)
at android.support.v7.widget.LinearLayoutManager$b.a(SourceFile:2229)
at android.support.v7.widget.LinearLayoutManager.a(SourceFile:1556)
at android.support.v7.widget.LinearLayoutManager.a(SourceFile:1516)
at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(SourceFile:583)
at android.support.v7.widget.RecyclerView.dispatchLayoutStep2(SourceFile:3694)
at android.support.v7.widget.RecyclerView.o(SourceFile:3411)
at android.support.v7.widget.RecyclerView.onLayout(SourceFile:3963)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1079)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
at com.android.internal.policy.DecorView.onLayout(DecorView.java:818)
at android.view.View.layout(View.java:18793)
at android.view.ViewGroup.layout(ViewGroup.java:5952)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2625)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2341)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1493)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7040)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:927)
at android.view.Choreographer.doCallbacks(Choreographer.java:702)
at android.view.Choreographer.doFrame(Choreographer.java:638)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:913)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6688)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
E/UncaughtException: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
Caused by: java.lang.NoSuchMethodException: [class android.view.View]
at java.lang.Class.getConstructor0(Class.java:2204)
at java.lang.Class.getDeclaredConstructor(Class.java:2050)
at com.saamtaxi.app_client.chat.MessageHolders.getHolder(SourceFile:404)
... 58 more
The text was updated successfully, but these errors were encountered: