India is also full of economic problems. Look at the stats for how many people have out of poverty in China since 1990 - its hundreds of millions of people. India has nowhere near the same seismic economic transformation, and is unlikely to soon.
It's not as many as China, but it's about 300 million raised out of poverty in India in the last decade. Every household in India has access to electricity as of this month. Extreme poverty is expected to be eliminated by 2030.
FDI is now flowing into India as it leaves China, and they are working with Japan to develop high speed rail and other infrastructure. They also have an advantage in avoiding the middle income trap - China is struggling to transition from an export orientated economy to one based on services, while India is going a totally different route of going straight to a service economy.