Does nativescript supports .so file in android platform?

后端 未结 3 1896
鱼传尺愫
鱼传尺愫 2020-12-21 10:16

Recently we are using nativescript to build an app, and we need to use a third-patty library which provides both IOS and Android SDK. But it failed even we push .so file to

3条回答
  •  春和景丽
    2020-12-21 10:33

    addition to for Karthik Sankar's answer. my *.so files got copied to app but did not get referenced.

    In this case you need to manually reference all of them like this. java.lang.System.loadLibrary("avcodec");

    to check if *.so files get copied use Native Libs Monitor app.

    ReLinker might be helpful too

    for detail https://github.com/bytedeco/javacpp-presets/issues/303

提交回复
热议问题