用到so库,同时编译多个so库,顺便做个记录,主要目录结构

AndroidStudio使用CMakeLists.txt编译多个so库

1.CMake文件

AndroidStudio使用CMakeLists.txt编译多个so库

2.CMake子目录

AndroidStudio使用CMakeLists.txt编译多个so库

3.build.gradle相关NDK配置

AndroidStudio使用CMakeLists.txt编译多个so库

针对问题:

Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.

->More than one file was found with OS independent path 'lib/x86/libnative-three.so'

解决方式,build.gradle配置:

AndroidStudio使用CMakeLists.txt编译多个so库

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2021-05-22
  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2021-04-26
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案