File not found when Engine.load is called

  • Last Post 04 March 2019
rameezk posted this 20 February 2019

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?

Order By: Standard | Newest | Votes
Nadezhda A. Solovyeva posted this 26 February 2019

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

rameezk posted this 27 February 2019

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?

Nadezhda A. Solovyeva posted this 28 February 2019

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

rameezk posted this 04 March 2019

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?

Nadezhda A. Solovyeva posted this 04 March 2019

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.