Solid state ionic conductors based on a carbazole-imidazolium cation structure were synthesized for application in solid state dye sensitized solar cells. Solid state electrolytes using designed solid state ionic conductors and iodine provide dual channels for hole/triiodide transportation, giving rise to a good conversion efficiency of 2.85%.