Austrian Chancellor Sebastian Kurz and Britain's Prime Minister Theresa May arrive for a family photo during the European Union leaders informal summit in Salzburg, Austria, September 20, 2018. REUTERS/Lisi Niesner

BERLIN (Reuters) - Brexit is a lesson to populists everywhere not to promise simple solutions that turn out more difficult than expected, Latvia’s foreign minister said, adding that Britain and the EU had no choice but to keep working for an amicable divorce deal.

Speaking in Berlin after meeting his German counterpart on Friday, Edgars Rinkevics said a compromise was needed that did not undermine key principles of the European Union but which could also win the support of Britain’s parliament.

“That is also a very good lesson to all populists and also those who think that there are very easy solutions,” he said. “The only way out of this - and we still have some time, not much time - is to continue to find the kind of compromise that could be acceptable.”