Al doped ZnO thin films were obtained by reactive radio frequency magnetron sputtering.
Correlation of stresses and texture with electrical and optical properties is shown.
Homogeneous and stress-free thin-films are the best performing ones.
XANES confirmed the doping mechanism and excluded some spurious phases.