When I call recognition, the following error occurred?
Failed to edit block "MainBlock"IO_FAILURE: error: AddResource en_US/en_US-ak-cur.res failed
error: failed to read configuration script
script exits with 2 errors
Below is my configuration:
My resource location:
What caused the inability to obtain identification resources?
Please help to solve this problem.
Thank you for your help!
Best Answer
O
Olivier @MyScript
said
about 4 years ago
Dear 磊 胡,,
thank you for the project, which helped understand.
Currently, you are using the iink SDK 1.3, while the resources you added are for the iink SDK 1.4. You have 2 possibilities:
-The quick one, which we do not recommend, which consists in downloading the resources of the iink 1.3 and deploy these in your project. For this, go to the recognition-assets package: https://developer.myscript.com/support/recognition-assets, and select the 1.3 version
-Or, the better solution which we recommend is that you update to the 1.4 release of the iink SDK.
Currently, you did not show the content onf the en_US directory. Can you confirm it contains both the en_US-ak-cur.res and the en_US-lk-text.res resources:
If so, can you please extract your APK, can confirm it contains the resources? For example, in our GetStarted APK, these are located into the GetStarted-debug.apk/assets/resources/en_US/ directory.
Best regards,
Olivier
磊
磊 胡
said
about 4 years ago
I'm sure it confirm contains both the en_US-ak-cur.res and the en_US-lk-text.res resources
I also make sure that the page in the APK contains the resource
So what do I do now? Is there some special configuration that needs to be done in the project
磊
磊 胡
said
about 4 years ago
The following is the project resource address, you can help to check the reason
thank you for the project, which helped understand.
Currently, you are using the iink SDK 1.3, while the resources you added are for the iink SDK 1.4. You have 2 possibilities:
-The quick one, which we do not recommend, which consists in downloading the resources of the iink 1.3 and deploy these in your project. For this, go to the recognition-assets package: https://developer.myscript.com/support/recognition-assets, and select the 1.3 version
-Or, the better solution which we recommend is that you update to the 1.4 release of the iink SDK.
磊 胡
When I call recognition, the following error occurred?
Failed to edit block "MainBlock"IO_FAILURE: error: AddResource en_US/en_US-ak-cur.res failed
error: failed to read configuration script
script exits with 2 errors
Below is my configuration:
My resource location:
What caused the inability to obtain identification resources?
Please help to solve this problem.
Thank you for your help!
Dear 磊 胡,,
thank you for the project, which helped understand.
Currently, you are using the iink SDK 1.3, while the resources you added are for the iink SDK 1.4. You have 2 possibilities:
-The quick one, which we do not recommend, which consists in downloading the resources of the iink 1.3 and deploy these in your project. For this, go to the recognition-assets package: https://developer.myscript.com/support/recognition-assets, and select the 1.3 version
-Or, the better solution which we recommend is that you update to the 1.4 release of the iink SDK.
For this, you can download the 1.4 release under gitHub: https://github.com/MyScript/interactive-ink-examples-android
You can also follow our migration guide: https://developer.myscript.com/docs/interactive-ink/1.4/overview/migration-guide/
As a general remark, I noticed your code is basically doing "batch mode" ; for this, I recommend you refer to our batch mode additional sample: https://github.com/MyScript/interactive-ink-additional-examples-android/tree/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode ; following it, you should get your sample working quickly.
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by PopularOlivier @MyScript
Dear 磊 胡,
thank you for contacting us.
Currently, you did not show the content onf the en_US directory. Can you confirm it contains both the en_US-ak-cur.res and the en_US-lk-text.res resources:
If so, can you please extract your APK, can confirm it contains the resources? For example, in our GetStarted APK, these are located into the GetStarted-debug.apk/assets/resources/en_US/ directory.
Best regards,
Olivier
磊 胡
I'm sure it confirm contains both the en_US-ak-cur.res and the en_US-lk-text.res resources
I also make sure that the page in the APK contains the resource
So what do I do now? Is there some special configuration that needs to be done in the project
磊 胡
The following is the project resource address, you can help to check the reason
https://github.com/houzhengbang-houzhengbang/IdentifyDemo
Thank you for your help
Olivier @MyScript
Dear 磊 胡,,
thank you for the project, which helped understand.
Currently, you are using the iink SDK 1.3, while the resources you added are for the iink SDK 1.4. You have 2 possibilities:
-The quick one, which we do not recommend, which consists in downloading the resources of the iink 1.3 and deploy these in your project. For this, go to the recognition-assets package: https://developer.myscript.com/support/recognition-assets, and select the 1.3 version
-Or, the better solution which we recommend is that you update to the 1.4 release of the iink SDK.
For this, you can download the 1.4 release under gitHub: https://github.com/MyScript/interactive-ink-examples-android
You can also follow our migration guide: https://developer.myscript.com/docs/interactive-ink/1.4/overview/migration-guide/
As a general remark, I noticed your code is basically doing "batch mode" ; for this, I recommend you refer to our batch mode additional sample: https://github.com/MyScript/interactive-ink-additional-examples-android/tree/master/java/samples/batch-mode/src/main/java/com/myscript/iink/samples/batchmode ; following it, you should get your sample working quickly.
Best regards,
Olivier