if you have basic knowledge of any field. while working with any project if something found new, just learn the soluation of that problem only and contuniue your project. by this way when any problem will arise try to learn solution of particular problem. and simultiniously in this way you can learn new topics and can also resume your projects.