AndroidApp Inclusion Stuck - Shared Library Issue


#1

Hello, I am building an app but getting an issue

WARNING: Found possible binary at app/src/main/assets/snowboy/alexa_02092017.umdl
WARNING: Found possible binary at app/src/main/assets/snowboy/common.res
ERROR: Found shared library at app/src/main/jniLibs/arm64-v8a/libsnowboy-detect-android.so
ERROR: Found shared library at app/src/main/jniLibs/armeabi-v7a/libsnowboy-detect-android.so
INFO: Removing gradle-wrapper.jar at gradle/wrapper/gradle-wrapper.jar
ERROR: Could not build app ai.susi: Can’t build due to 3 errors while scanning
INFO: Finished
INFO: 1 build failed

I have used an Open Source Library, called Snowboy for Hotword detection and the files are pre-build files build using SWIG…
More details at https://github.com/kitt-ai/snowboy/blob/master/examples/Android/README.md
These two .so files are causing issue.
Please help.

Suggest me some alternative, if this can’t be resolved


#2

Prebuild files are not accepted, you need to build those too before you build the app…


#3

Can u help me more about that, the prebuild libraries are build by SWIG in Snowboy and the wrappers of C, C++ files are not present or I am unable to found that.


#4

Hope that others can chime in with a solution. :man_shrugging:


#5

Try at IRC channel…


#6

Did that, no replies!


#7

The README you linked contains instructions how to build the native libraries. Put them into the build recipe.


#8

@relan, Please clarify more to it. That would be great.
Thanks


#9

@relan, It uses swig in MacOS and then it built the native libraries, how to do that for f-droid build?