Including *.so libraries Android Studio tess-two (tesseract)

一个人想着一个人 提交于 2019-11-30 10:23:49

If somebody would wondering, obviously dependency from alt+enter didn't make it right.

It had to build whole project itself first. So I added a folder:

  • include ':libraries:tess-two'

into the gradle.settings, moving whole project of tess-two structure into 'libraries/tess-two' (when 'libraries' is same level as your 'app' folder).

After that (if you have set up ndk.dir=C:path in local.properties) , you are able to set module dependency into your main project...

Rightclick app->Open Module Settings(or F4) and click plus on right side and add tess-two as module in your project app.

Notice that 'tess-two' folder has to contains own build.gradle (manifestfile and project.properties) file, so it can build itself.

Hope it will helps somebody :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!