In 2017, Lin starred in Stephen Chow's Journey to the West: The Demons Strike Back, playing Sun Wukong. The film grossed $239.5 million, becoming the highest grossing film among the Journey to the West novel adaptations. The same year, he starred in historical action drama Princess Agents. The drama was a massive hit, and Lin gained renewed recognition for his portrayal of the male lead, Yuwen Yue.