Community

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?

Was this article helpful?

0 out of 0 found this helpful

Comments

5 comments

  • Avatar
    Nadezhda A. Solovyeva

    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
    rameezk

    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
    Nadezhda A. Solovyeva

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

    0
  • Avatar
    rameezk

    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
    Nadezhda A. Solovyeva

    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

Please sign in to leave a comment.