Firebase- ML Kit library fails to detect barcode in Samsung J5 device

喜你入骨 提交于 2019-12-03 22:20:00

This can happen if the storage on the device is not sufficient or say the internet is not available at all (which seems unlikely given the question). Try the following and see if it works:

Settings->Apps->Google Play Services->Storage->Manage Space->Clear All Data

This is a one-time issue faced during development (unless the app data is cleared again).

When you deploy your app, you can avoid this problem in production by pre-downloading the recognition model upon app installation from Play Store:

<meta-data
    android:name="com.google.firebase.ml.vision.DEPENDENCIES"
    android:value="text" />
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!