Forward Rashard Lewis failed his physical with the Dallas Mavericks, who planned to sign him to a one-year deal worth the veteran's minimum.

Lewis will instead become a free agent but needs a procedure on his right knee. In his place, the Mavericks signed Al-Farouq Aminu to a reported two-year contract at the veteran minimum, with a player option for the second year.

"It came to our attention during Rashard Lewis's physical that he is in need of a medical procedure on his right knee," president of basketball operations Donnie Nelson said in a statement released by the Mavericks. “We wish him all the best for a speedy recovery and continued success in his remarkable career."

Lewis spent the past two seasons with the Miami Heat and was a member of their 2013 NBA championship team. Last season, he averaged 4.5 points, 1.8 rebounds and 16.2 minutes in 60 games. In the playoffs, he averaged 5.3 points and 2.1 rebounds.

In 16 NBA seasons, the two-time NBA All-Star has averaged 14.9 points, 5.2 rebounds, 1.7 assists, 1.1 steals and 32.0 minutes in 1,049 games (842 starts) for the Seattle Sonics, Orlando Magic, Washington Wizards and Heat.

Lewis was the No. 32 overall pick by the Sonics in the 1998 draft.

The 23-year-old Aminu played in 80 games for the New Orleans Pelicans last season and averaged 7.2 points, 6.2 rebounds and 1.4 assists.