Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does nativescript supports .so file in android platform?

Tags:

nativescript

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 lib folder, the error is the library cannot find the expected .so file during app running.
So I want to know does nativescript supports .so file and how to make it works? Thanks in advance.

like image 744
nathan.xu Avatar asked Nov 26 '25 21:11

nathan.xu


1 Answers

Currently this task is not automated in the tns CLI but it should be possible to copy your *.so files in <project>/platforms/android/libs/jni/armeabi-v7a and/or <project>/platforms/android/libs/jni/x86 directories. Gradle build respects these folders and *.so files will be included in the *.apk package.

like image 192
Mihail Slavchev Avatar answered Dec 01 '25 15:12

Mihail Slavchev