Hello,
Thank you for your question.
When using the Recognizer object, the configuration key must be prefixed with "recognizer."
So in your code:
conf.setStringArray("recognizer.configuration-manager.search-path", new String[]{confDir});
conf.setString("recognizer.lang", "zh_CN");Please, update your code accordingly and let us know whether it fixes your issue.
Best regards,
Gwenaëlle
Hello:
Thank you for your answer, which has solved the problem. Thanks for your professionalism.
Best regards,
yyiand
Thank you for your feedback! We're glad you resolved your issue.
Best regards,
Gwenaëlle
Yyiandyang
This is my init SDK code.
When my code executes at this point, a crash occurs.
This is crash log.
Process: com.lxzx.app, PID: 11765
java.lang.IllegalStateException: The search path of the configuration manager is empty ("recognizer.configuration-manager.search-path")
at com.myscript.iink.NativeFunctions.createRecognizer(Native Method)
at com.myscript.iink.Recognizer.<init>(Recognizer.java:29)
at com.myscript.iink.Engine.createRecognizer(Engine.java:491)
at com.lxzx.writing.HandWriteModule$1.onViewInited(HandWriteModule.java:364)