Can't load native shared library with dependencies in a native activity app

后端 未结 4 1938
心在旅途
心在旅途 2020-12-15 00:19

In my Android app I have 4 libraries:

libTemplate.so
   depends on libPorkholt.so
libPorkholt.so
   depends on libpng15.so
   depends on liblua.so
   depends         


        
4条回答
  •  难免孤独
    2020-12-15 01:17

    This no longer affects API 24+ (see the framework fix here). However, if you need to support older versions, extend NativeActivity, refer to your extension in the manifest file instead, and add the static block mentioned in Sdra's answer as workaround.

提交回复
热议问题