It's not true, solar is very cost effective, cheaper than coal. But there are industries build around extracting coal from the ground and they have an interest to continue to push coal.
All up installed cost of solar per kWh is now cheaper than fossil fuel fired power plants but it's only been that way for a couple of years. Power plants are build based on a 30-50 year lifecycle. It's like trying to steer an oil tanker (hah) - we ARE turning, it just takes a while.