繁体   English   中英

如何在 aar 中包含 c/cpp header 文件?

[英]How to include c/cpp header files inside aar?

Android .aar通常只包含*.jar*.so和资产相关资源。

如何在 .aar 中包含*.so相关的.aar文件?

在您的项目的build.gradle中添加以下配置。 这会有所帮助

nativeBundleExport {
  # The path where the header file is located is set to headerDir
  headerDir = "${project.projectDir}/src/main/jni/include"
}

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM