Batteries based on an in situ-polymerized amorphous cross-linked poly(ether-ester) GPE exhibit high performance, which is attributed to the synergistic effect of the ether and ester segments of the GPE and the in situ-generated polymer electrolytes.