ype argument is not within its boundsExpectedViewBindingFoundActivityMainBinding
The error message suggests that the expected type of the argument is "ViewBinding", but the actual type found is "ActivityMainBinding".
To resolve this issue, you can check the class hierarchy of "ActivityMainBinding" and see if it extends or implements the "ViewBinding" interface or class. If it does, you can try casting the "ActivityMainBinding" object to "ViewBinding" before passing it as an argument.
For example:
ViewBinding binding = (ViewBinding) activityMainBinding;
If "ActivityMainBinding" does not extend or implement "ViewBinding", you may need to review your code and make sure you are using the correct binding class for your specific use case
原文地址: https://www.cveoy.top/t/topic/iryE 著作权归作者所有。请勿转载和采集!