the dependency
implementation 'com.budiyev.android:code-scanner:2.1.0'
is no longer working, replace with:
implementation 'com.github.yuriy-budiyev:code-scanner:2.3.0'
Refer to the code scanner library.