Michigan State University has named Samuel Stanley Jr. as its 21st president.