如何在framework⼀base下引用第三方的jar包

2025-01-01 01:38:39
推荐回答(1个)
回答1:

  先将SpeechApi.jar放在framework/base/下
在framework/base/Android.mk文件下增加代码
include $(BUILD_PACKAGE)
LOCAL_STATIC_JAVA_LIBRARIES:= kdxf
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := kdxf:SpeechApi.jar
include $(BUILD_MULTI_PREBUILT)