BEIJING - Chinese President Xi Jinping and German Chancellor Olaf Scholz on Friday condemned threats to use atomic weapons in Ukraine, with Scholz warning that Russia risked "crossing a line" in the international community by resorting to nuclear force.

Scholz is the first G7 leader to visit China since pandemic. In a much-scrutinized meeting Friday with President Xi Jinping in Beijing, Scholz urged China to exert its influence on Russia, while the Chinese leader repeated a call for talks between Moscow and Ukraine and warned against the conflict going nuclear.

Scholz is in Beijing for a one-day visit that has drawn criticism over China’s tacit support for Russia, lingering controversies over economic ties and human rights issues, as well as the timing of the trip.

It comes after Xi further cemented his authoritarian rule at a major Communist Party congress last month and as China continues to refuse to criticize Russia.

Scholz’s visit reflects the importance of Germany’s trade ties with China, the world’s second-largest economy, particularly in the auto and manufacturing sectors. Mercedes Benz alone sold 758,863 cars in China last year, more than in any other country, according to company figures.