The real cause of the problem is that many communities are racially segregated and that we don't require police officers to live in the communities they police. It causes cops to police neighborhoods like troops occupying a foreign country with restless natives.
If we want to get serious about stopping this we should 1) outlaw gentrification and lower property taxes so that poor people aren't forced to live apart from everyone else 2) outlaw any zoning laws that affect the income levels of communities 3) provide police officers with a home in the community they police and require them to live there with their families. Also, put a body cam on every police officer and have an independent quality assurance department to conduct random reviews.