Receive the latest entertainment-news updates in your inbox

Law enforcement confirmed on June 2, 2016, that the artist known as Prince died of opioid overdose. (Published Thursday, June 2, 2016)

A Minnesota medical examiner has determined Prince died of an accidental overdose of the powerful painkiller fentanyl.

The Midwest Medical Examiner's office released the results of its investigation into the death, revealing Prince died of "self-administered" fentanyl, a synthetic opioid connected to numerous overdoses across the country.

A law-enforcement official earlier told The Associated Press that tests showed Prince died of an opioid overdose.

The 57-year-old singer was found dead April 21 at his Minneapolis-area estate.

The official, who is close to the investigation, spoke on condition of anonymity because he was not authorized to speak to the media.

The findings confirm suspicions that opioids played a role in the musician's death. After he died, a law enforcement official told the AP that investigators were examining whether an overdose was to blame and whether a doctor had prescribed him drugs in the preceding weeks.

Prince's death came less than a week after his plane made an emergency stop in Moline, Illinois, for medical treatment as he was returning from an Atlanta concert. The official said Prince was found unconscious on the plane and that first responders gave him a shot of Narcan, an antidote used in suspected opioid overdoses.

At least two doctors' names have come up in the death investigation being conducted by the Carver County Sheriff's Office, the U.S. Attorney's Office in Minnesota and the Drug Enforcement Administration.

Dr. Michael Todd Schulenberg, a family practitioner, treated Prince twice in the weeks before his death and told investigators he prescribed medications for the singer. The medications were not specified in a search warrant for the Minnesota hospital that employed Schulenberg at the time.

Schulenberg saw Prince April 7 and April 20 — the day before his death — according to the warrant. Schulenberg's attorney has declined to comment on the case.

Dr. Howard Kornfeld, a California addiction specialist, was asked by Prince's representatives on April 20 to help the singer.

Kornfeld sent his son Andrew on a redeye flight that night, and Andrew was among the people who found Prince's unresponsive body the next morning, according to Kornfeld's attorney, William Mauzy.

The younger Kornfeld, who is not a doctor, was carrying buprenorphine, a medication that can be used to treat opioid addiction by easing cravings and withdrawal symptoms, Mauzy said, explaining that Andrew Kornfeld intended to give the medication to a Minnesota doctor who had cleared his schedule to see Prince on April 21. Mauzy has refused to identify that doctor. Schulenberg is not authorized to prescribe buprenorphine.

Prince's death came two weeks after he canceled concerts in Atlanta, saying he wasn't feeling well. He played a pair of makeup shows April 14 in that city, and then came the emergency landing in Moline. Prince was scheduled to perform two shows in St. Louis but canceled them shortly before his death.

The superstar had a reputation for clean living, and some friends said they never saw any sign of drug use. But longtime friend and collaborator Sheila E. has told the AP that Prince had physical issues from performing, citing hip and knee problems that she said came from years of jumping off risers and stage speakers in heels.