A simple and powerful method based on UV-visible spectroscopy is presented for studying the stability of the inner electrically conducting polyaniline (PANI) solid contact (SC) layer in all-solid-state ion-selective electrodes (ISE). The influence of the plasticized poly(vinyl chloride) (PVC) membrane (ISM) composition and the pH of the sample solution on the stability of the solid contact is reported. PANI is used as a model compound in this study, but the method presented is universal and can be applied to different types and combinations of SCs and ISMs. It provides a tool for finding the best combination of conducting polymer and ISM for solid contact ISEs. PANI is deposited electrochemically either on glassy carbon or quartz glass covered with a thin layer of tin oxide, and a K+-selective ISM is deposited on top of the PANI layer. The short-term stability of the inner PANI layer is good for all membrane types in buffer solutions with pH 2, 6, and 9, indicating that the outer plasticized PVC membrane hinders the emeraldine salt-emeraldine base transition of the highly pH sensitive PANI layer. The solid contact K+-selective electrodes studied showed a Nernstian response of 58.2 +/- 0.1 mV/log a(K). Significant differences are observed in the long-term stability of the inner PANI layer between the different membrane types. This indicates that water uptake of the PVC membrane and its permeability to OH- ions are critical parameters affecting the stability of the PANI layer. The solid contact electrodes based on PANI may require a composition of the PVC membrane different from those typically used in conventional ISEs with an inner solution.