Avoiding problems with requirements gathering and analysis requires thorough communication with the customer at the start of development.
Requirements Gathering and Analysis is the critical first step of the classic Waterfall methodology of development. In a nutshell, this is the phase where the customer and stakeholders are consulted to lay out exactly what product or process is required and what that must consist of.
You may or may not have heard of the Thomas-Kilmann Conflict Mode Instrument. It is a series of tests designed to evaluate and define different management styles and to consider the pros and cons of each.