You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如果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)
The text was updated successfully, but these errors were encountered:
如果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)
The text was updated successfully, but these errors were encountered: