目录

How do I reference an externally compiled .so library file in a HAR or HSP?

  1. Depending on the device type, place the .so library file in the corresponding directory of the HAR or HSP: libs/arm64-v8a for the arm64-v8a type, libs/armeabi-v7a for armeabi-v7a type, and libs/x86_64 for the x86 emulator type.

  2. Link the .so library file in the CMakeLists.txt file in src/main/cpp. For example: target_link_libraries (entry PUBLIC libxxx).