All solid-state thin film batteries of lithium-iodine can be simply fabricated by coating a thin solid LiI(HPN)2 electrolyte layer on the surface of an Li plate and then exposing its surface to I2 vapor, which then shows improved rate performance and rechargeability. A compound of I2-LiI(HPN)2 can serve as a new cathode for Li/I2 batteries.