GetStream / stream-chat-android

:speech_balloon: Android Chat SDK ➜ Stream Chat API. UI component libraries for chat apps. Kotlin & Jetpack Compose messaging SDK for Android chat
https://getstream.io/chat/sdk/android/
Other
1.47k stars 273 forks source link

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

Closed dheerajsinghrathore closed 2 years ago

dheerajsinghrathore commented 2 years ago

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

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)

TGazica commented 2 years ago

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.

adasiewiczr commented 2 years ago

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

github-actions[bot] commented 2 years ago

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.

dheerajsinghrathore commented 2 years ago

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

adasiewiczr commented 2 years ago

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?

dheerajsinghrathore commented 2 years ago

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.

bychkovdmitry commented 2 years ago

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

filbabic commented 2 years ago

Closing this one due to inability of repro.