使用Android studio 開發NDK,載入了aosp里面的so檔案,運行的時候報找不到 [email protected] 檔案
在cmakelists.txt中增加了
add_library( [email protected]
SHARED
IMPORTED )
set_target_properties( [email protected]
PROPERTIES IMPORTED_LOCATION
${jniLibs_DIR}/${ANDROID_ABI}/[email protected] )
target_link_libraries 也增加了 [email protected]
編譯的時候就出錯,改成android.hardware.graphics.allocator 就能編譯通過,但是運行時找不到[email protected], 請問下cmakelists 如何加載這個so檔案呢
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/92812.html
標籤:Android
上一篇:酷歐天氣ls-al
