Error in installing seurat

Hi
I have the following error after instating Seurat, any help?
Using R studio version 1.4 and R version 4

Error: package or namespace load failed for ‘Seurat’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘Matrix’ 1.2-18 is already loaded, but >= 1.3.3 is required

thanks

This is asking you to update the Matrix package

install.packages("Matrix")

Yes. it worked.
Thanks a lot.