I know this has been asked and answered multiple times but I\'m tearing my hair out as none of the proposed solutions appears to work.
After spending the day I realized it was a simple change in Project Settings
File -> Project Settings... -> Build System -> Legacy Build System.
In a project setting, you will see Build System named drop down and in that drop down select Legacy Build System