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

如果app imoport "com.google.android.material:material" lib 版本是 1.11.0 或是1.12.0, 使用這個套件在小米平板5(android os 11)顯示ToastX會crash #7

Open
myvideotom opened this issue May 30, 2024 · 0 comments

Comments

@myvideotom
Copy link

如果app imoport "com.google.android.material:material" lib 版本是 1.11.0 或是1.12.0, 使用這個套件在小米平板5(android os 11)顯示ToastX會crash

Log:
java.lang.ClassCastException: com.google.android.material.snackbar.Snackbar$SnackbarLayout cannot be cast to com.app.toast.snackbar.BaseTransientBottomBar$SnackbarBaseLayout
at com.app.toast.snackbar.BaseTransientBottomBar.(BaseTransientBottomBar.java:409)
at com.app.toast.snackbar.Snackbar.(Snackbar.java:124)
at com.app.toast.snackbar.Snackbar.makeInternal(Snackbar.java:228)
at com.app.toast.snackbar.Snackbar.make(Snackbar.java:170)
at com.app.toast.snackbar.SnackBarX.show(SnackBarX.kt:143)

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