Adding a external jar reference in Android.mk

前端 未结 5 2052
北恋
北恋 2021-02-01 10:56

I want to add a external third party jar file in the inbuilt android app.

I\'ve added the LOCAL_CLASSPATH variable in Android.mk due to which the compilation goes fine.

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 11:30

    Add it with LOCAL_STATIC_JAVA_LIBRARIES & LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES flag.

    and put LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES between include $(BUILD_PACKAGE) & include $(BUILD_MULTI_PREBUILT).

    It will OK. thanks for the URL a2ronus provided.

提交回复
热议问题