Scanner sdk doesn't work when build variants change

I'm developing android application with zebra android scanner sdk. Barcodes can read with sdk at the first when I change build variants debug to releaseĀ  or release to debug scanner can't read barcode until revoke all permission. When I revoke permissions with ADB, everything can work again. I did try many things to solve but i cant handle it. I'm using barcode_scanner_library_v2.3.1.0.