Skip to content
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

android.view.View cannot be cast to android.view.ViewGroup #48

Open
sansan-cc opened this issue Dec 26, 2023 · 0 comments
Open

android.view.View cannot be cast to android.view.ViewGroup #48

sansan-cc opened this issue Dec 26, 2023 · 0 comments

Comments

@sansan-cc
Copy link

java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup

线上报的错,问题应该是出在这一段代码里。然后出问题的Activity是一个简单的页面,没有额外添加View。设备也很统一,90%都是三星的手机
image

  • Library version
    "fragmentationx" : 'me.yokeyword:fragmentationx:1.0.2',
    "fragmentationx-swipeback" : 'me.yokeyword:fragmentationx-swipeback:1.0.2',

  • Support-v4 version

  • Logs

11-27 16:40:10.115 15671 15671 E AndroidRuntime: java.lang.ClassCastException: android.view.View cannot be cast to android.view.ViewGroup -- 9811-27 16:40:10.115 15671 15671 E AndroidRuntime: at me.yokeyword.fragmentation.SwipeBackLayout.a(SwipeBackLayout.java:20) 9911-27 16:40:10.115 15671 15671 E AndroidRuntime: at me.yokeyword.fragmentation_swipeback.c.c.b(SwipeBackActivityDelegate.java:1) 10011-27 16:40:10.115 15671 15671 E AndroidRuntime: at me.yokeyword.fragmentation_swipeback.SwipeBackActivity.onPostCreate(SwipeBackActivity.java:2) 10111-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1542) 10211-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3976) 10311-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:221) 10411-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:201) 10511-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:173) 10611-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) 10711-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2472) 10811-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 10911-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:234) 11011-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.os.Looper.loop(Looper.java:346) 11111-27 16:40:10.115 15671 15671 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8872) 11211-27 16:40:10.115 15671 15671 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 11311-27 16:40:10.115 15671 15671 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 11411-27 16:40:10.115 15671 15671 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
  • Screenshots

In addition, we do not accept issues unrelated to Fragmentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant