我在Android4.4.4的源环境中,我想引用aar,在编写.mk之后,用mm -B编译,我可以成功编译,但是在实际使用中,我找不到任何类在aar中。
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_STATIC_JAVA_LIBRARIES := libsupport-v4 \
fastjson \
glide \
LOCAL_STATIC_JAVA_AAR_LIBRARIES := taifullsdk-3.1.0.263-release \
carmusicsdk \
btts-1.1.29 \
LOCAL_JAVA_LIBRARIES := autosdk
LOCAL_AAPT_FLAGS := --auto-add-overlay \
--extra-packages com.tencent.btts \
--extra-packages com.tencent.carmusic.sdk \
--extra-packages com.tencent.taifullsdk \
LOCAL_PACKAGE_NAME := QQMusic
LOCAL_CERTIFICATE := platform
LOCAL_AIDL_INCLUDES := $(LOCAL_PATH)/src
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := libsupport-v4:libs/android-support-v4.jar \
fastjson:libs/fastjson-1.2.47.jar \
glide:libs/glide-3.8.0.jar \
btts-1.1.29:libs/btts-1.1.29.aar \
carmusicsdk:libs/carmusicsdk.aar \
taifullsdk-3.1.0.263-release:libs/taifullsdk-3.1.0.263-release.aar \
include $(BUILD_MULTI_PREBUILT)
#include $(BUILD_PREBUILT)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))
有人可以帮助我吗?