Rookie swingman Kris Wilkes of UCLA won’t be headed to Knicks training camp on a two-way contract, The Post has learned.

Due to health reasons, Wilkes’ verbal agreement on a two-way deal has been voided.

Wilkes, a 6-foot-8 small forward who averaged 17.4 points as a UCLA sophomore sniper, missed the Las Vegas summer league with what the Knicks termed an illness.

While the 20-year-old is not considered healthy enough for camp that begins Sept. 30, the Knicks remain interested in Wilkes for later this season, according to an NBA source.

After going undrafted on June 20, Wilkes agreed the next day to a two-way contract, which means he would have been permitted 45 days on the Knicks’ roster and the rest with the G League Westchester Knicks. The clock stops ticking when the G League season ends in early April.

Clubs are permitted to carry a 15-man roster and a pair of two-way players. Point guard Kadeem Allen has one of those Knicks contracts and now the team is eligible to sign another one.

It’s unclear if the club will use it or evaluate a training-camp invitee such as shot-blocking rookie power forward Kenny Wooten of Oregon. Wooten signed an Exhibit 10 deal that guarantees him $50,000 to attend camp if he spends 45 days with Westchester.

Though the Knicks didn’t officially announce the Wilkes signing, president Steve Mills and general manager Scott Perry talked about the Indianapolis native during a press conference for draft picks RJ Barrett and Ignas Brazdeikis on June 21.

Mills said then that the Knicks had worked out Wilkes before the 2018 draft after which he elected to stay at UCLA for a sophomore year. The Knicks were high on Wilkes then and haven’t given up on him now.