President Trump said Saturday that he will no longer host the G-7 Summit at his struggling Miami golf resort — but blamed the media and Democrats for his about-face rather than concern over an appearance of self-dealing.

Trump made the announcement in a trio of evening tweets, lashing out at his Democratic rivals and at press opposition — which included an editorial in the New York Post — to his holding the summit at Trump National Doral.

“I thought I was doing something very good for our Country by using Trump National Doral, in Miami, for hosting the G-7 Leaders. It is big, grand, on hundreds of acres, next to MIAMI INTERNATIONAL AIRPORT, has tremendous ballrooms & meeting rooms, and each delegation would have its own 50 to 70 unit building,” Trump wrote.

“I announced that I would be willing to do it at NO PROFIT or, if legally permissible, at ZERO COST to the USA. But, as usual, the Hostile Media & their Democrat Partners went CRAZY!” he added.

In another tweet, he said he will no longer consider Doral for the meeting — and added they are searching for another site and considering Camp David.

Plans to host the summit were slammed as a corrupt act.

Rep. Jerrold Nadler, chairman of the House Judiciary Committee, said choosing Doral “is among the most brazen examples yet of the President’s corruption. He is exploiting his office and making official U.S. government decisions for his personal financial gain.”