SEOUL, South Korea — Washington and Seoul on Sunday signed an agreement on how to share the cost of the American military presence in South Korea, resolving a dispute between the allies before President Trump’s meeting this month with Kim Jong-un, the North Korean leader.

But the one-year deal only temporarily addresses an issue that has become particularly contentious under Mr. Trump, who has insisted that South Korea and other allies shoulder more of the cost of maintaining American bases on their soil.

Under the new deal, Seoul will contribute about 1.04 trillion won, or $925 million, this year to help cover the expense of stationing 28,500 American troops in South Korea. That is an 8.2 percent increase from last year, when South Korea paid 960 billion won, roughly half the total cost.

The agreement, subject to parliamentary approval, was signed in Seoul on Sunday by the chief South Korean negotiator, Chang Won-sam, and his American counterpart, Timothy Betts.