nativescript在Android平台中是否支持.so文件? [英] Does nativescript supports .so file in android platform?

查看:60
本文介绍了nativescript在Android平台中是否支持.so文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们正在使用nativescript来构建应用程序,我们需要使用同时提供IOS和Android SDK的第三部分库. 但是,即使我们将.so文件推送到lib文件夹,它也失败了,错误是库在应用程序运行期间找不到所需的.so文件.
所以我想知道nativescript是否支持.so文件,以及如何使其工作? 预先感谢.

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.

推荐答案

当前该任务在tns CLI中不是自动执行的,但是应该可以在<project>/platforms/android/libs/jni/armeabi-v7a和/或*.so文件>目录. Gradle构建会尊重这些文件夹,并且*.so文件将包含在*.apk软件包中.

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.

这篇关于nativescript在Android平台中是否支持.so文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆