参考<link>
要点是加入这两个标签:
LOCAL_STATIC_JAVA_LIBRARIES
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES
上面链接里没提到的是,这两个标签需要用`CLEAR_VARS`分开,并且include `BUILD_MULTI_PREBUILT`可以理解成不同的makefile:
LOCAL_STATIC_JAVA_LIBRARIES := third-party-lib1 third-party-lib2 #..... ########################## include $(CLEAR_VARS) LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := third-party-lib1:libs/lib1.jar third-party-lib2:libs/lib2.jar include $(BUILD_MULTI_PREBUILT)