stream-chat-android icon indicating copy to clipboard operation
stream-chat-android copied to clipboard

App Crash After click on Attach in Chat (Java Android)

Open dheerajsinghrathore opened this issue 2 years ago • 6 comments

Describe the bug App is crashing after implement the demo code as per your doc. I want to test in my application in java programming language but when I am clicking on Attach option the app is crashing.

SDK version

  • 31

To Reproduce Steps to reproduce the behavior:

  1. Go to Chat Screen
  2. Click on attach icon
  3. App crash

android.view.InflateException: Binary XML file line #47 in (app_package_name):layout/design_bottom_sheet_dialog: Could not inflate Behavior subclass com.google.android.material.bottomsheet.BottomSheetBehavior Caused by: java.lang.RuntimeException: Could not inflate Behavior subclass com.google.android.material.bottomsheet.BottomSheetBehavior at androidx.coordinatorlayout.widget.CoordinatorLayout.parseBehavior(CoordinatorLayout.java:649) at androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams.(CoordinatorLayout.java:2896) at androidx.coordinatorlayout.widget.CoordinatorLayout.generateLayoutParams(CoordinatorLayout.java:1740) at androidx.coordinatorlayout.widget.CoordinatorLayout.generateLayoutParams(CoordinatorLayout.java:112) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1123) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1082) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1124)

dheerajsinghrathore avatar Jun 17 '22 05:06 dheerajsinghrathore

Hey @dheerajsinghrathore,

Thanks for letting us know about the issue. We will check it out and get back to you with more information as soon as possible.

TGazica avatar Jun 21 '22 10:06 TGazica

hey @dheerajsinghrathore, could you give us more information about the issue and configuration?

  • Which Stream SDK version are you using?
  • Are you using standalone components (for example MessageInputView) or Activities/Fragments?
  • Are you using Material Theme for your application?

adasiewiczr avatar Jul 05 '22 08:07 adasiewiczr

This issue has been automatically closed because there has been no response to our request from the original author. Please don't hesitate to comment on the bug if you have any more information for us - we will reopen it right away! Thanks for your contribution.

github-actions[bot] avatar Jul 13 '22 00:07 github-actions[bot]

Which Stream SDK version are you using? implementation "io.getstream:stream-chat-android-ui-components:5.4.0"

Are you using standalone components (for example MessageInputView) or Activities/Fragments? I am using in Activity

Are you using Material Theme for your application? I am Using Material Design or Theme

dheerajsinghrathore avatar Jul 13 '22 03:07 dheerajsinghrathore

hey @dheerajsinghrathore, we were trying to reproduce this crash without luck. Could you provide us with a minimal project in which the crash is reproducible?

adasiewiczr avatar Jul 13 '22 07:07 adasiewiczr

Hi @adasiewiczr
I am trying in demo project. I am using Activity in entire project, not navigation component.

You can also try with activity only then App will crash After click on Attach option.

dheerajsinghrathore avatar Jul 14 '22 04:07 dheerajsinghrathore

Hello @dheerajsinghrathore

Are you still struggling with this issue? Could you tell us, which theme are you using for your application and activity? Ideally if you could send us the code snippets with your themes. Thanks

Also, a similar issue here: https://github.com/GetStream/stream-chat-android/issues/2419#issuecomment-932119469

bychkovdmitry avatar Aug 31 '22 13:08 bychkovdmitry

Closing this one due to inability of repro.

filbabic avatar Sep 12 '22 06:09 filbabic