Right now the solar panel technology isn't mature enough. They are extremely polluting to produce, uses all kind of already rare material, and most of all: have a limited lifetime while not being recyclable at all! With windmills they are the worst kind of "green" energy source you can find but hey, it's good PR: "look I produce clean energy on my roof, who cares if entire Chinese city suffers massive brain damage from the water polluted by the silica mines"...
This idea was suggested 10 years ago while a rather revolutionary photovoltaic coating was developed by some US university (if I recall right) That way you could have spayed the roads and roofs to make energy, much much more efficient. I don't know what became of this idea, maybe it wasn't efficient enough.
If you really want to go green energy, go for geothermal, underwater turbines, dynamos plugged into treadmill (yes it is an actual thing), tidal power, or fusion (that one would be good). Those are reliable, robust but cost more and aren't as shiny.