how to make a single apk file compatible with all android devices?

When I build the game for android, for example, to 2.3 only works with devices with this version of android. It does not work apk for android 4 and had to make a apk for android 4.3. But there must be a way to increase compatibility with a single .apk file or not ?

I wouldn’t bother to develop for anything under Android 5. Why? Well old hardware, for one. But if you REALLY want that, you will need to build a low version as you want. The newer versions will be compatible with the older versions, but not vice versa. You could also develop 2 versions, 1 for new phones with Android 5+ and one for older phones…but it will consume time.