コミュニティ

File not found when Engine.load is called

I'm trying to integrate the SDK in one of my projects. After successfully integrating the Library, I have copied the AbbyyRtrSdk.license file in the Assets folder but when I call the method

Engine.load(activity, "/src/main/assets/AbbyyRtrSdk.license")

It causes FileNotFoundException. Should the file be copied somewhere else?

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

5件のコメント

  • Avatar
    Permanently deleted user

    Please check your relative paths. Probably, you don't have /src/main/assets/ subdirectory in your current directory. Please try an absolute path instead.

    0
  • Avatar
    Permanently deleted user

    Sorry but I don't think we can get absolute path of the assets folder. Should I write the file in external storage and then pass it's path along?

    0
  • Avatar
    Permanently deleted user

    Please try so and let us know if this does not solve your issue.

    0
  • Avatar
    Permanently deleted user

    Still facing the same issue. It still say file not found. Also the license file exists at the path I mentioned. Any other way to resolve this?

    0
  • Avatar
    Permanently deleted user

    Please check the access rights for your application. It should have permissions to access the license file in the filesystem.

    If this does not solve your issue, then please forward the request to ABBYY technical support by e-mail. The correct e-mail contact for your region is listed in "Contacts" section of ABBYY website.

    0

サインインしてコメントを残してください。