简体   繁体   English

如何在Android项目的Intellij IDEA中包含.so库?

[英]How to include a .so lib in Intellij IDEA for Android project?

I have an Android project that loads a custom .so lib. 我有一个Android项目加载自定义.so lib。 I'm having trouble w/ IntelliJ IDEA to include this .so as part of the build. 我无法使用IntelliJ IDEA来包含这个.so作为构建的一部分。

Does anyone know where to config the project settings to include this .so file? 有谁知道在哪里配置项目设置以包含此.so文件?

Thanks 谢谢

UPDATE: Found it! 更新:找到它!

In Project Structure -> Modules -> Android -> Native libs directory. 在项目结构 - >模块 - > Android - >本机库目录中。

My project is referring to a .so from another project, that's why the path needs to be updated here to find the .so file 我的项目是指来自另一个项目的.so,这就是为什么路径需要在这里更新才能找到.so文件

Solution: 解:

In Project Structure -> Modules -> Android -> Native libs directory. 在项目结构 - >模块 - > Android - >本机库目录中。

My project is referring to a .so from another project, that's why the path needs to be updated here to find the .so file 我的项目是指来自另一个项目的.so,这就是为什么路径需要在这里更新才能找到.so文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将jar包含到APK的lib或user lib android项目中? - How to include jars into the lib or user lib android project on APK? 如何将人行横道项目嵌入现有的IntelliJ IDEA 15 Android项目中 - How to embed the crosswalk project in an existing IntelliJ IDEA 15 Android project 无法在Intellij IDEA的项目中包含源库 - Can not include source library in project in Intellij IDEA 如何将外部 jar 库文件添加到 Intellij Idea android 项目 - How to add external jar library file to Intellij Idea android project 如何在IntelliJ IDEA(社区版)中使用Scala源代码构建Android项目? - How to build Android project with Scala sources in IntelliJ IDEA (Community Edition)? 如何在 Android Studio 和 IntelliJ IDEA 的项目中共享 Kotlin 格式约定? - How to share Kotlin formatting conventions in project for Android Studio and IntelliJ IDEA? 如何在IntelliJ IDEA中调试Android Gradle项目的特定构建变体? - How to debug specific build variant of Android Gradle project in IntelliJ IDEA? 如何在IntelliJ Idea中使用AirPush构建Android项目? - How build Android project using AirPush in IntelliJ Idea? Android Gradle项目(Intellij IDEA)中的依赖项 - Dependencies in Android Gradle project (Intellij IDEA) 在Intellij IDEA中运行Android项目时出错 - Error Running Android Project in Intellij IDEA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM