BROOKLYN, N.Y.: Kyrie Irving missed a 3-pointer at the buzzer and the Brooklyn Nets held on for a 103-100 victory over the Cavaliers on Saturday at Barclays Center.

Irving sank a 3-pointer seconds earlier to give the Cavs a chance at the buzzer. He took the final inbounds pass from Luke Walton, dribbled to the top of the 3-point line and launched. With both arms raised over his head, Irving watched as the shot rattled in and out, sending the Cavs to their second loss in as many nights.

Irving had 13 points and seven assists and C.J. Miles was terrific with a season-high 33 points off the bench in a losing effort.

Irving also missed an open look off the front of the rim with 10 seconds left and the Cavs down three.

A dunk from Tristan Thompson pulled the Cavs within 100-97, and following a miss from Brook Lopez, the Cavs elected not to call a timeout and went for the quick basket. But Irving’s swooping left-handed shot around Brook Lopez bounced off the rim.

Miles had 25 points in the first half, and finished 8 of 10 on 3-pointers. The eight made 3-pointers are a new career high. Miles kept the Cavs in the game in the first half while Tyler Zeller struggled defending Lopez.

Lopez had 15 points after the first quarter and scored a season-high 35 to go with 11 rebounds. Zeller wound up fouling out trying to combat the former All-Star on a night the Cavs certainly could’ve used Anderson Varejao.

Both Varejao (knee) and Daniel Gibson (concussion) did not make the trip and remained in Cleveland, but Miles was terrific with the extra minutes typically slotted for Gibson. He was left with wide open looks around the perimeter following multiple breakdowns in the Nets’ defense and he punished them for it nearly every time. He ended the night seven points shy of his career high of 40.

The Cavs trailed most of the night, but managed to pull within 79-78 early in the fourth quarter on a jumper from Jeremy Pargo. Then they went without a basket for 3 ˝ minutes, allowing the Nets to extend the lead to 88-79. They spent the rest of the evening unsuccessfully trying to fight their way back.

Tristan Thompson had 17 points and 15 rebounds and made 7 of his 8 free throws. Alonzo Gee had 10 points and four rebounds, but sat the game’s final nine minutes. Coach Byron Scott elected to stick with Luke Walton at power forward after Zeller fouled out, shifting Thompson to center.

Irving was consoled by Nets minority owner Jay-Z after the game. He was sitting courtside, exchanged words with Irving and patted him on the shoulder after the buzzer.