Creating a product SDK: How do I add a native lib (.so) and a jar with the SDK I am creating?

后端 未结 4 1695
别那么骄傲
别那么骄傲 2020-11-30 03:18

I am creating a widget that we will provide to developer end users and it consists of a .jar and a native library (.so) built using the NDK. The JA

4条回答
  •  有刺的猬
    2020-11-30 03:33

    Add the below lines to android.mk.

    include $(BUILD_PACKAGE)
    
    LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := alias:libs/your.jar
    
    include $(BUILD_MULTI_PREBUILT)
    

提交回复
热议问题