Batteries charged with solar energy are portable, efficient, and cheap. They're not AS portable, efficient, and cheap as gas. But, again, being as good in those terms is not the test for viability.
We are if we want to be... which clearly you do. Similarly, we could have been stuck with CFCs until we waited around for an alternative that was just as cheap and efficient. And we could have been stuck with sulfur-dioxide-spouting power plants if we didn't start moving away from them until someone figured out how to make a plant that was equally efficient without spouting sulfur dioxide. But, fortunately, in the past we've been willing to take a reasonably small hit when it comes to things like price and efficiency, in order to gain some large improvements in other areas. That's what we can do with green energies as well.
Any economic change is going to have localized impacts. If we came up with dirt-cheap cold fusion tomorrow, it would have serious localized negative impacts in the oil and gas fields, for example. But what I mean is that looking at it from the perspective of the economy as a whole, we can move to green energy, at this point, without taking a big hit. The costs differentials are already narrow enough that it wouldn't be the severe shock we'd have seen if we tried to do it in the 90s, for example.