Born in Las Palmas, Viera finished his youth career with hometown UD Las Palmas, where he earned the nickname Romário.[2] He made his senior debut with the reserve team, appearing in ten Segunda División B games in the 2008–09 season and suffering relegation. On 18 February 2010, he renewed his contract until June 2013.[3]
Viera was definitely promoted to the main squad for 2010–11, as the team competed in the Segunda División.[4] He finished the campaign with 31 matches (26 starts) and six goals, including three in a 5–3 away win against FC Barcelona B on 15 May 2011, which all but certified the Canary Islands side's permanence.[5]
In January 2012, amidst rumours of a transfer – Las Palmas inclusively had everything arranged with Granada CF but the deal eventually fell through – Viera assured he would stay with his club until the end of the season.[6] He finished as the second-best top scorer in the squad at nine, only trailing another youth graduate, Vitolo, by one goal.[7]
Valencia
On 6 May 2012, one month before the Las Palmas season ended, Viera signed with La Liga's Valencia CF for five years and €2.5 million.[8][9] He made his official debut against FC Barcelona, playing 13 minutes of a 1–0 away loss.[10]
Viera scored his first goal in the top flight on 29 September 2012, closing the 2–0 home victory over Real Zaragoza.[11] On 30 August of the following year, he was loaned to Madrid-based Rayo Vallecano in a season-long move without the option of making the deal permanent afterwards.[12]
On 14 January 2015, Viera was loaned to Las Palmas until June.[16] He contributed seven goals in 21 appearances, as his team returned to the top division after a 13-year absence.[17]
Viera signed a permanent three-year deal on 14 July 2015, for €900,000.[18]
Beijing Guoan
On 19 February 2018, Viera joined Chinese Super League club Beijing Sinobo Guoan F.C. on a four-year contract for a fee of around €11 million. The player acknowledged the transfer "took care" of his future,[19][20] and Las Palmas retained a buy-back option in the future.[17] On 7 April 2019, he was named the competition's Player of the Month for the previous month.[21]
Viera completed the second hat-trick of his career on 28 April 2019, by scoring three goals in a 4–1 home defeat of Dalian Yifang F.C. in the domestic league.[22] In August, he was loaned to Las Palmas until the end of the year.[23]
Third spell at Las Palmas
On 23 August 2021, Viera returned to Las Palmas on a five-year contract.[24] He scored a personal best 14 goals in his first season,[25] adding seven in the following for the runners-up who thus returned to the top tier.[26]
On 14 December 2023, the 34-year-old Viera left by mutual agreement.[27] Shortly before that, he had briefly put his career on hold to take care of his sick wife.[28]
Almería
On 6 February 2024, Viera joined top-flight UD Almería on a deal running until June 2025.[29] On 15 July, however, after suffering relegation, he was allowed to terminate his link.[30]
^"中超3月各项最佳出炉:国安夺3魁 张宇峰最佳U21" [Superbest in March's Super League: Guoan take 3 Zhang Yufeng best U21] (in Chinese). Sina Sports. 7 April 2019. Retrieved 20 April 2019.
^"生涯第2帽!比埃拉家庭博物馆收藏进球 直言太兴奋" [Second career hat trick! Viera adds match ball to his personal museum] (in Chinese). Sina Sports. 29 April 2019. Retrieved 29 April 2019.
^Ortego, Enrique (9 October 2017). "Un golazo de Illarra premia a España" [Illarra wonder goal rewards Spain]. Marca (in Spanish). Retrieved 9 October 2017.