Android.mk添加以下内容即可
LOCAL_SRC_FILES := $(call all-java-files-under,app/src/main/java)
LOCAL_SRC_FILES += $(call all-Iaidl-files-under,app/src/main/aidl/android/os)
LOCAL_SRC_FILES += $(call all-Iaidl-files-under,app/src/main/aidl)
LOCAL_SRC_FILES += $(call all-Iaidl-files-under,app)
LOCAL_AIDL_INCLUDES += $(LOCAL_PATH)/app/src/main/aidl/android/os
LOCAL_AIDL_INCLUDES += $(LOCAL_PATH)/app/src/main/aidl
来源:CSDN
作者:镇上村树
链接:https://blog.csdn.net/realDonaldTrump/article/details/104374430