Gasol confirmed his availability for the defending champions on Wednesday after missing last year's world championship in Turkey, where Spain finished sixth.
According to the Spanish basketball federation's website, Gasol says that "if the coach feels he can count on me then I want to help the team win another European" title.
"I will play the European Championship with my National Team," Gasol tweeted later Thursday.
Gasol helped Spain to a 2006 world title and a silver medal at the Beijing Olympics.
The decision comes after the Dallas Mavericks swept Gasol's Lakers 4-0 in the Western Conference semifinals of the NBA playoffs.
The Euros will be played in Lithuania from Aug. 31 to Sept. 18.
Information from the Associated Press was used in this report.