U.S. manufacturers are shifting production to countries outside of China as trade tensions between the world’s two biggest economies stretch into a second year.

Companies that make Crocs shoes, Yeti beer coolers, Roomba vacuums and GoPro cameras are producing goods in other countries to avoid U.S. tariffs of as much as 25% on some $250 billion of imports from China. Apple Inc. also is considering shifting final assembly of some of its devices out of China to avoid U.S. tariffs.

Furniture-maker...