Despite of low fabrication cost and flexibility, limited life time is the major disadvantage of bulk heterojunction organic solar cells (OSCs). The main causes of short life time of OSCs is the degradation of active layer in presence of light and O2 and the effect of the acidic PEDOT:PSS on the ITO electrode. To overcome this problem PEDOT: PSS can be replaced by a p-type metal oxide hole transportation layer, such as NiO. There are reports on vacuum deposited NiO hole transporting layers in OSCs. Here, we have used the low-cost spin coating technique to deposit the NiO layer from a dispersion of NiO particles in methanol. Concentration and deposition parameters were optimized to obtain 40-50 nm thick layer of NiO as observed by tapping mode atomic force microscopy. The device performance of P3HT:PCBM solar cell with ITO/PEDOT: PSS and ITO/NiO electrodes was compared.