Now that I think of it, I know there's established history with Transformers properly equipped being able to use sunlight...
Megatron: "Conquest isn't working! We have to find a way to harvest energy in a way that can pass undetected, or at least not involve so much energy USAGE..."
*Energon Shockblast and Sixshot pop out solar panels*
"Ok, why didn't you two bring this up YEARS ago...?!"
*G1 Snarl waves in the background*
Edit: You know, it WOULD be a Decepticon doing this. It varies with the universe but Autobots almost always are shown relying on charity or alliances to get energy, often having it backfire. Decepticons? Conquer the planet and take everything you can? Sure. Hire yourselves out as mercenaries? No problem. Star in a B movie and get paid in energy? No one in command CARES, so long as it works. The Decepticons had pragmatism on their side.