Phonegap-plugin-barcodescanner crashing app after signing apk

It is working in development, but if I sign the apk it crashes at cordova.plugins.barcodeScanner.scan.
Signed apk works on older versions of Android but it is crashing on 8+.

I can see in logcat;
java.lang.RuntimeException: Unable to start activity ComponentInfo{}: android.content.res.Resources$NotFoundException: File res/raw/beep.ogg from drawable resource ID #0x7f0d0000


App.configurePlugin(‘cordova.plugins.barcodeScanner’, { ANDROID_SUPPORT_VERSION:‘27.+’ });

It seems to be crashing just because of a sound file. Maybe you have something wrong with the Android path. Just a guess…

I was doing something wrong when signing apk.