Android 12L error inside GroupViewManagerWrapper.kt

Please provide the following:

  1. SDK Version: 48
  2. Platforms(Android/iOS/web/all): Android
  3. Add the appropriate “Tag” based on what Expo library you have a question on.

After creating internal Android tests, I get a Google report saying that my app is crashing.

I have no idea what’s going on because I can not reproduce this using an actual device.

This is the stacktrace:

java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup
  at expo.modules.kotlin.views.GroupViewManagerWrapper.createViewInstance (GroupViewManagerWrapper.kt:18)
  at expo.modules.kotlin.views.GroupViewManagerWrapper.createViewInstance (GroupViewManagerWrapper.kt:12)
  at com.facebook.react.uimanager.ViewManager.createViewInstance (
  at com.facebook.react.uimanager.ViewManager.createView (
  at com.facebook.react.uimanager.NativeViewHierarchyManager.createView (
  at com.facebook.react.uimanager.UIViewOperationQueue$CreateViewOperation.execute (
  at com.facebook.react.uimanager.UIViewOperationQueue$ (
  at com.facebook.react.uimanager.UIViewOperationQueue.flushPendingBatches (
  at com.facebook.react.uimanager.UIViewOperationQueue.access$2600 (
  at com.facebook.react.uimanager.UIViewOperationQueue$2.runGuarded (
  at (
  at android.os.Handler.handleCallback (
  at android.os.Handler.dispatchMessage (
  at android.os.Looper.loopOnce (
  at android.os.Looper.loop (
  at (
  at java.lang.reflect.Method.invoke
  at$ (
  at (


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