Update to a more recent Android API level.
The minimum is API 23 as well as the target. This is and old API and recent Android versions complain about it when installing the apk. It will eventually not be possible to install such lower targetted API's. This primarily affects the socket code and not the JNI code. The socket code was borrowed from the K9 email app.