A general analytic form of the full 6 × 6 dyadic Green's function of a spherically symmetric open optical system is presented, with an explicit solution provided for a homogeneous sphere in vacuum. Different spectral representations of the Green's function are derived using the Mittag-Leffler theorem, and their convergence to the exact solution is analyzed, allowing us to select optimal representations. Based on them, more efficient versions of the resonant-state expansion (RSE) are formulated, with a particular focus on the static mode contribution, including versions of the RSE with a complete elimination of static modes. These general versions of the RSE, applicable to nonspherical optical systems, are verified and illustrated on exactly solvable examples of a dielectric sphere in vacuum with perturbations of its size and refractive index, demonstrating the same level of convergence to the exact solution for both transverse electric and transverse magnetic polarizations.