All-air-processed flexible perovskite solar cells are plagued by ultraviolet degradation and mechanical brittleness. A multifunctional ionic liquid bearing a tailored C═C structure provides full-stage UV protection through nondestructive energy dissi