This is a challenging question for all writers. The fact is you really cannot please everyone and it is often useful to find yourself at odds with at least some audiences. The alternative is to so average yourself that you end up not standing for anything. It is far better to be respected as a leader or authority in your focal area.
Writing, tough as it is, is still the easy part. Getting published, a near impossibility, is also relatively easy especially if you self-publish or put your own money on the table. Those all represent big enough challenges, of that I have no doubt, but the greatest challenge, by far, is marketing your work.