Hydrogen has problems at the production, distribution and storage stages. It's certainly a viable option, because it leverages internal combustion engine technology. But beyond that it gets more difficult.
First, we'd need to produce it using green energy, instead of from fossil fuels, as it is now. That technology looks deceptively simple. I made hydrogen at my basement chemistry set as a kid. Scaling that up and marrying it to solar, wind or other renewable sources is a challenge at a number of levels.
Hydrogen is hard to store. It's literally the smallest molecule there is. And we all know how bad leaks can be. It has a high energy density, measured by mass. But in the transportation world the real measure is volumetric energy density.
For any new fuel we'd need a vast distribution infrastructure. Hydrogen would require that to be built from scratch, using a lot of complex technology which will be difficult to scale.
Again, it's very possible to switch to a "hydrogen economy" but it would take a huge commitment. I suspect other technologies will get there first.