The solution is to get our heads around the fact that people need affordable places to live, and work toward satisfying that demand as quickly as reasonably possible without completely overloading services or putting too many homeowners on the edge upside-down on their mortgages. Unfortunately, so much damage has already been done that this will not be easy, but it will only get harder as governments continue to shelter the wealthy at the expense of everybody else and local economies in general.
Oh, and hand-wringing about changing demographics and culture is not helping. Change happens. Integration is necessary.