No you don't. Basic4android produces code compatible with Android 4 and all the libraries so far are also Android 4 compatible. Your code needs to be compiled with Android-8 because that is the version that knows about SD card installation and that is why you get the error but the resulting code is fine for earlier versions of Android.