Last-gasp Ronaldo double hands the home side the win.
The Republic of Ireland will now turn their attention to Saturday's World Cup qualifier against Azerbaijan after suffering a heartbreaking 2-1 defeat to Portugal in Faro last night.
Gavin Bazunu saved an early penalty from Cristiano Ronaldo, before John Egan headed Ireland into the lead just before half time.
Stephen Kenny's men held out until the 89th minute when Ronaldo headed home an equaliser.
And then Ronaldo won the game with another header in stoppage time.
The Manchester United forward is now the all time record goalscorer in international football with 111 goals.
Leixlip native and former Leixlip United player, Andrew Omobamidele made his senior debut.
This evening, England are away to Hungary.
Kick off in Budapest is at 7.45.

Séamus Kennedy Announces Retirement From Inter-County Hurling
Republic of Ireland Drawn Against Spain In The Women's Nations League
Tuesday's Main Lunchtime News
Noel McNamamara Named As Next Season's Successor To Leinster Head Coach Leo Cullen
Tuesday Morning Sports Update
Katie Williamson Of Liffey Celtics Named On Irish Basketball Squad For Upcoming Campaign
Katie McCabe Shortlisted For The FIFPRO Women's World 11
Coill Dubh's Johnny Byrne Ratified As New Longford Hurling Manager