Nike Inc., the world’s largest sporting-goods maker, has suspended ties with Maria Sharapova after she failed a drug test at the Australian Open.

One of the best female tennis players of her generation, Sharapova said at a news conference Monday that she had been taking meldonium for health reasons for a decade and had not noticed when it was banned by the World Anti-Doping Agency as of Jan. 1. Failing the test could cost the tennis player a spot at the Rio 2016 Olympics and the $298,000 she won in January at the Australian Open.

"We are saddened and surprised by the news about Maria Sharapova,” said Kejuan Wilkins, a spokesman for Nike which has worked with the player for more than a decade. “We have decided to suspend our relationship with Maria while the investigation continues. We will continue to monitor the situation.”

Sharapova extended her sponsorship agreement with the Beaverton, Oregon-based company in 2010 by eight years for $70 million in a deal that included a line of dresses designed by the player, according to a person with knowledge of the contract at that time.

Meldonium, which is made by pharmaceutical company Grindeks AS, is used to treat heart conditions and brain circulation disorders in Latvia and Russia. (It is not approved for use in the U.S.) But the company also says on its website that meldonium "improves physical capacity and mental function ... in healthy people." A handful of athletes, including a Russian cyclist and six Georgian wrestlers, have tested positive for the drug this year.

The 28-year-old Sharapova, who has been battling injuries this season, won about $298,000 at the 2016 Australian Open, where she lost in the quarterfinals to Serena Williams. According to International Tennis Federation Rules, a positive drug test at the event "automatically leads to disqualification of the results obtained by the player ... including forfeiture of any medals, titles, ranking points, and prize money."

She has been provisionally suspended by the global tennis body effective March 12, a ban that could jeopardize her spot at the 2016 Rio Olympics. She won a silver medal for Russia at the 2012 Olympics in London.

When Sharapova announced the press conference on short notice, many speculated that she might announce her retirement. Ranked No. 7 by the Women’s Tennis Association, Sharapova earned $29.7 million in 2015, making her the most highly paid female athlete in the world, according to Forbes (and No. 26 overall, just ahead of Arizona Cardinals quarterback Carson Palmer). But just 23 percent of her prize money came from tennis winnings -- the other $23 million was earned from endorsements from companies including Avon Products Inc., Nike, Tag Heuer and Evian.