LONDON — Oil will continue growing as a source of energy for over two decades, with the U.S. set to become the undisputed leader in fossil fuel production, the International Energy Agency said Tuesday.

The report from the Paris-based agency will come as grim news for officials attending global climate talks in Bonn, Germany, as they grapple with ways to contain carbon emissions. Scientists just this week said that emissions of the heat-trapping gas rose this year after three years of not growing.

The IEA said that driver for oil production will be continued growth in energy-hungry industries. Though solar power is set to become the cheapest source of new electricity generation and the boom years for coal are over, oil and gas will continue to meet the bulk of the world’s energy needs, the IEA said.

Oil demand is forecast to keep rising until 2040, with natural gas growing by a sharp 40 percent.

A more widespread use of electric cars will not be enough to consign oil to the past, said IEA Executive Director Fatih Birol.

“It is far too early to write the obituary of oil, as growth for trucks, aviation, petrochemicals, shipping and aviation keep pushing demand higher,” said Birol.

Total energy demand is expected to have grown by 30 percent by 2040 – and would have grown twice that without efforts to improve energy efficiencies.

Amid that growth, the IEA expects the U.S. to see a resurgence in its oil and gas industries and become the world’s biggest net exporter by the end of the 2020s. Asian countries will become the biggest net importers of oil and gas, taking in 70 percent of imports by 2040 as their economies expand at a fast clip.

Environmental activists decried the IEA forecasts as discounting any efforts by countries to limit emissions as part of the Paris agreement on climate change.

“None of its core scenarios for the future of energy provide a reasonable chance that the world will avoid climate catastrophe,” said Adam Scott, senior adviser at Oil Change International.