AndroidStudio使用CMakeLists.txt編譯多個so庫

用到so庫,同時編譯多個so庫,順便做個記錄,主要目錄結構

1.CMake文件

2.CMake子目錄

3.build.gradle相關NDK配置

針對問題:

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

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

解決方式,build.gradle配置:

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章