John Krasinski in Talks for Cameron Crowe's Romantic Comedy (Exclusive)

Getty Images
John Krasinski

The all-star cast includes Bradley Cooper, Emma Stone, Rachel McAdams and Alec Baldwin.

John Krasinski is in talks to join Cameron Crowe’s untitled romantic comedy.

The Office actor will join a star-heavy cast that includes Bradley Cooper, Emma Stone, Rachel McAdams, Danny McBride, Jay Baruchel, Alec Baldwin and Bill Murray.

The currently untitled film, set up at Sony, follows a defense contractor (Cooper) who falls for an Air Force pilot (Stone) after he's assigned to oversee the launch of a weapons satellite from Hawaii.

Krasinski will play a military man married to McAdams, who is playing Cooper's ex-girlfriend.

PHOTOS: Inside 'The Office': The Stars Look Back on 9 Seasons of Dunder Mifflin

Scott Rudin is producing the pic along with Crowe, who also wrote the script.

Krasinski, who for nine seasons was one of the stars of NBC's The Office and whose past film credits include Leatherheads and Big Miracle, most recently co-wrote and starred in 2012's Promised Land. He also voiced a character in Monsters University. He's repped by WME and Schreck Rose.