LONDON -- The new U.S. Embassy in London, criticized last week by President Donald Trump as too expensive and poorly located, opened its doors to the public Tuesday for the first time.

The gleaming embassy, in the formerly industrial Nine Elms neighborhood in south London, replaces the embassy in Grosvenor Square that had for decades been associated with the U.S. presence in the United Kingdom. That building has been sold to a Qatari government investment fund planning to turn it into a luxury hotel.

U.S. officials say it would have cost hundreds of millions of dollars to upgrade security at the older building and bring it up to modern safety standards.

Get Breaking News Delivered to Your Inbox

Mr. Trump tweeted last week that he would not come to London to open the embassy because the new embassy represented a poor investment.

Reason I canceled my trip to London is that I am not a big fan of the Obama Administration having sold perhaps the best located and finest embassy in London for “peanuts,” only to build a new one in an off location for 1.2 billion dollars. Bad deal. Wanted me to cut ribbon-NO! — Donald J. Trump (@realDonaldTrump) January 12, 2018

The president's tweet read: "Reason I canceled my trip to London is that I am not a big fan of the Obama Administration having sold perhaps the best located and finest embassy in London for 'peanuts,' only to build a new one in an off location for 1.2 billion dollars. Bad deal. Wanted me to cut ribbon-NO!"

Though Mr. Trump blamed predecessor Barack Obama for the expensive new embassy, the project was in fact announced in October 2008 during the presidency of George W. Bush.

Mr. Trump's plans to visit Britain have met resistance from some politicians and activists who disagree with his policies on a number of fronts, including his actions on immigration and climate change. Substantial protests were expected.

London Mayor Sadiq Khan, who Mr. Trump has repeatedly criticized, said the U.S. leader seems to have "got the message" that many Londoners find his policies to be intolerant and wrong.

Many Londoners have made it clear that Donald Trump is not welcome here while he is pursuing such a divisive agenda. It seems he’s finally got that message. This reinforces what a mistake it was for Theresa May to rush and extend an invitation of a state visit in the first place. pic.twitter.com/lNaQGx9iBw — Mayor of London (@MayorofLondon) January 12, 2018

Mr. Trump is still invited for a state visit -- to be hosted by Queen Elizabeth II -- but no date has been set. The invitation was extended by the British government nearly a year ago during Mr. Trump's first days in office.

U.S. officials say the new embassy cost $1 billion and was paid for entirely with money raised by the sale of other U.S. government properties in London.

A model of President Donald Trump from Madame Tussaud's waxwork attraction is seen outside the new U.S. Embassy on January 12, 2018 in London, England. Getty

The new building, with its distinctive cube shape, is nearly twice as large as the Grosvenor Square facility. It is the single most expensive embassy building ever built by the United States.

Robert Johnson, appointed by Mr. Trump as U.S. ambassador to Britain, called the new energy-efficient embassy a "bargain" during a pre-opening tour for journalists last month. He said the embassy, which does not have a perimeter fence, is both welcoming and secure.

There were no ceremonies to mark the official opening of the facility Tuesday.