# Class Cast Exception FlexboxLayout

**URL:** <https://devforum.zoom.us/t/class-cast-exception-flexboxlayout/122478>\
**Category:** Android\
**Tags:** android, sdk\
**Created:** [December 16, 2024, 6:54am UTC](https://devforum.zoom.us/t/class-cast-exception-flexboxlayout/122478 "2024-12-16T06:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobileapp](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mobileapp/32/49749_2.png) [@mobileapp](https://devforum.zoom.us/u/mobileapp)\
**Post date:** [December 16, 2024, 6:54am UTC](https://devforum.zoom.us/t/class-cast-exception-flexboxlayout/122478/1 "2024-12-16T06:54:30Z")

</div>

**Description**  
I have found class cast exception on Crash report from Google play threw from an app that I developed

**Based on Google report the class caused the exception is the below**  
ZmBaseAppsWithRealTimeAccessBottomSheet.java - us.zoom.proguard.e03$c.onCreateViewHolder

Hide crash

**Which Android Meeting SDK version?**  
version = 6.0.10.22015

**To Reproduce(If applicable)**  
I have no idea how to reproduce it

**Smartphone (please complete the following information):**

- [motorola kiev (moto g 5G)] - [Android 11 (SDK 30)]

**Additional context**  
they report the below stack trace

```auto
Exception android.view.InflateException: Binary XML file line #69 in ats.ksa.care.patient:layout/zm_app_with_real_time_access_item: Binary XML file line #69 in ats.ksa.care.patient:layout/zm_app_with_real_time_access_item: Error inflating class com.google.android.flexbox.FlexboxLayout
Caused by: android.view.InflateException: Binary XML file line #69 in ats.ksa.care.patient:layout/zm_app_with_real_time_access_item: Error inflating class com.google.android.flexbox.FlexboxLayout
Caused by: java.lang.ClassNotFoundException: com.google.android.flexbox.FlexboxLayout
  at java.lang.Class.classForName
  at java.lang.Class.forName (Class.java:454)
  at android.view.LayoutInflater.createView (LayoutInflater.java:813)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1004)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:959)
  at android.view.LayoutInflater.rInflate (LayoutInflater.java:1121)
  at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:1082)
  at android.view.LayoutInflater.rInflate (LayoutInflater.java:1124)
  at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:1082)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:680)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:532)
  at us.zoom.proguard.e03$c.onCreateViewHolder (ZmBaseAppsWithRealTimeAccessBottomSheet.java:5)
  at us.zoom.proguard.e03$c.onCreateViewHolder (ZmBaseAppsWithRealTimeAccessBottomSheet.java:1)
  at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder (RecyclerView.java:7788)
  at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline (RecyclerView.java:6873)
  at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:6757)
  at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition (RecyclerView.java:6753)
  at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next (LinearLayoutManager.java:2362)
  at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk (LinearLayoutManager.java:1662)
  at androidx.recyclerview.widget.LinearLayoutManager.fill (LinearLayoutManager.java:1622)
  at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren (LinearLayoutManager.java:687)
  at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2 (RecyclerView.java:4645)
  at androidx.recyclerview.widget.RecyclerView.onMeasure (RecyclerView.java:4022)
  at us.zoom.uicommon.widget.recyclerview.ZMRecyclerView.onMeasure (ZMRecyclerView.java:5)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1552)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:842)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:721)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at android.view.View.measure (View.java:25532)
  at com.google.android.material.bottomsheet.BottomSheetBehavior.onMeasureChild (BottomSheetBehavior.java:515)
  at androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure (CoordinatorLayout.java:831)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at androidx.appcompat.widget.ContentFrameLayout.onMeasure (ContentFrameLayout.java:141)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.LinearLayout.measureChildBeforeLayout (LinearLayout.java:1552)
  at android.widget.LinearLayout.measureVertical (LinearLayout.java:842)
  at android.widget.LinearLayout.onMeasure (LinearLayout.java:721)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewGroup.measureChildWithMargins (ViewGroup.java:6957)
  at android.widget.FrameLayout.onMeasure (FrameLayout.java:194)
  at com.android.internal.policy.DecorView.onMeasure (DecorView.java:794)
  at android.view.View.measure (View.java:25532)
  at android.view.ViewRootImpl.performMeasure (ViewRootImpl.java:3534)
  at android.view.ViewRootImpl.measureHierarchy (ViewRootImpl.java:2373)
  at android.view.ViewRootImpl.performTraversals (ViewRootImpl.java:2636)
  at android.view.ViewRootImpl.doTraversal (ViewRootImpl.java:2048)
  at android.view.ViewRootImpl$TraversalRunnable.run (ViewRootImpl.java:8409)
  at android.view.Choreographer$CallbackRecord.run (Choreographer.java:972)
  at android.view.Choreographer.doCallbacks (Choreographer.java:796)
  at android.view.Choreographer.doFrame (Choreographer.java:731)
  at android.view.Choreographer$FrameDisplayEventReceiver.run (Choreographer.java:957)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loop (Looper.java:250)
  at android.app.ActivityThread.main (ActivityThread.java:7877)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:958)
Caused by java.lang.ClassNotFoundException: com.google.android.flexbox.FlexboxLayout

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 15, 2025, 4:54pm UTC](https://devforum.zoom.us/t/class-cast-exception-flexboxlayout/122478/2 "2025-01-15T16:54:51Z")

</div>

Closed on January 15, 2025, 4:54pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
