Paint doesn’t stick very well to dirty walls, so clean them with soap and water (or TSP) and rinse with water once done. Let dry overnight.