How-to use a shared library in native-activity

后端 未结 1 533
一整个雨季
一整个雨季 2021-01-18 06:17

I have an Android project with a native activity. This native activity uses a shared library named \"main\" (libmain.so file) for starting. ( with the code of ndk/samples/na

相关标签:
1条回答
  • 2021-01-18 06:39

    I believe you must list all your shared libraries in AndroidManifest.xml file:

    <meta-data android:name="android.app.lib_name" android:value="game" />
    <meta-data android:name="android.app.lib_name" android:value="main" />
    

    Not sure about the order of libraries. Try change the order if it doesn't work.

    0 讨论(0)
提交回复
热议问题