Closed ohnowade closed 2 years ago
If you write your code it seems you are trying to load incomplete model from the device while the model is being copied. You need to wait till the model is unpacked
Thanks a lot! That seemed to be the problem. I should have created the Recognizer either in the callback of unpack or using any other way to make sure that the model is unpacked.
I run into this issue when I call
StorageService.unpack
in my own application. I had the same structure as this demo, in which there is a separate module calledmodels
that contains the model files in its assets, and I had no problem running the demo on my device. Here is the logcat output:This is the
build.gradle
file of the application:and here is the manifest:
The manifest of the
models
module is copied from the demo. I'd really appreciate if someone has any idea on what causes this C error and how to solve it. Thank you!