Why does my app work on Note 5, but not HTC One M8?

My app works like a charm on my Galaxy Note 5 (and other’s Note 5 as well), but it crashes on my HTC One M8, on a Asus Tablet, and some other cheap 7" android tablets as well. Any ideas of what might be causing this?