His death was confirmed by a spokeswoman, Diana Baron. She said he was found dead in Muscat, the capital of Oman, on Friday but did not specify a cause of death.
“The family is devastated and we ask everyone to please respect their need for privacy in this difficult time,” Ms. Baron said.
Avicii became famous with his 2011 hit “Levels” and was part of a wave of electronic dance music D.J.s who achieved pop-star levels of prominence. His songs have been streamed more than a billion times on Spotify.
He was nominated for two Grammy Awards for best dance recording, in 2012 and 2013, and his most well-known song, “Wake Me Up,” reached the No. 4 spot on Billboard’s Hot 100 chart. He also released two albums: the platinum “True,” in 2013, and “Stories,” in 2015. Both “Levels” and “Wake Me Up” were certified platinum; the singles “Waiting for Love,” “The Nights,” “You Make Me” and “I Could Be the One” — a collaboration with Nicky Romero — went gold.
The songs on “True” frequently blended folk instruments with dance beats. “Wake Me Up,” a song that lingered on the Hot 100 for more than a year, featured soulful vocals from Aloe Blacc singing about the lessons of youth:
So wake me up when it’s all over,When I’m wiser and I’m older,All this time I was finding myself, and IDidn’t know I was lost.
On his recordings Avicii teamed up with a range of musicians, including the bluegrass artist Dan Tyminski, the country-rock singer Zac Brown, the glam-pop vocalist Adam Lambert and the rapper-singer Wyclef Jean.