Unless you use a hybrid approach, like a super efficient turbine generator + solar cells, so your battery doesn't need to be nearly as big.
I don't think there's enough surface area on an airplane to gather significant solar power. And that doesn't help at night or in clouds.
A jet turbine generator can run at near-constant efficiency.