In 2018, Hudgens starred in the romantic comedy film "Dog Days", alongside Finn Wolfhard and Nina Dobrev. She collaborated with electronic dance music duo Phantoms on the single "Lay With Me", released in September 2018. She starred in the Netflix film "The Princess Switch" in November 2018, in which she portrayed both a European duchess and a pastry chef from Chicago, who temporarily switch roles. In December 2018, she co-starred opposite Jennifer Lopez in the comedy film "Second Act", directed by Peter Segal. Hudgens starred in another Fox live musical presentation, "", as Maureen Johnson, in January 2019. In November 2019, she starred in and served as a producer on the Netflix film "The Knight Before Christmas".