Japan and China agreed Monday in their first high-level economic dialogue in nearly eight years that any trade war poses a threat to global growth and that the two countries will step up efforts to cooperate.

The agreement was reached in Tokyo amid increasing trade friction between China and the United States.

"We shared the recognition that a trade war caused by any nation would have a massive impact on the prosperity of the global economy," Foreign Minister Taro Kono told reporters after the meeting, which was attended by ministers and senior officials.