There are many different kinds of books in the library.
They are both right.
All kinds have various meanings, but their meanings tend to be various. You mean there are many kinds of libraries, but not all of them understand?