Solar energy is cheaper than oil right now. On average. Too bad it's highly variable but if you can cope with extreme variability you can get extremely cheap energy.
Pretty tough to cope with variability if you want to build a modern industrial economy. I mean even with cheap labor it kind of kills your cost structure when capital intensive facilities have to shut down due to electricity shortage. Plus there are plenty of industrial processes that require fossil fuels as inputs separate from just electricity.
fossil fuels were a proxy for energy. China continues to show the world that energy independence can come via electricity that you generate within your borders, and that it can be cheaper than importing foreign oil.