“Me and Earl and the Dying Girl” star Olivia Cooke has landed one of the lead roles in Steven Spielberg and Warner Bros.’ “Ready Player One,” sources tell Variety.

Spielberg is currently wrapping up production on the DreamWorks pic “The BFG,” but has tapped this as his next directing job and has been seeing actors and actresses for the past couple of weeks for the lead roles.

WB had no comment.

Reports surfaced last week that Cooke was among a handful of actresses who had made the shortlist.

The Warner Bros., Village Roadshow and DreamWorks release is based on the buzzy Ernest Cline book of the same name. Spielberg, Donald De Line, Dan Farah and Kristie Macosko Krieger will produce, with Bruce Berman serving as exec producer.

Cline’s novel, published in 2011, follows the rise of virtual reality universe the Oasis, which humans living in the not-too-distant future begin to value above the real world. Zak Penn adapted the story for the screen.

Pic is slated to bow on Dec. 15, 2017.

Cooke broke out after her career-making role in the Sundance pic “Me and Earl and the Dying Girl,” winning over auds and critics with her portrayal of a teen diagnosed with cancer. Her past credits include “Ouija” and A&E’s “Bates Motel.”

She is repped by Gersh and Luber Roklin Entertainment. The news was first reported by the Hollywood Reporter.