Android.mk 加入aidl文件编译

 需要修改Android.mk文件,加入LOCAL_SRC_FILES += $(call all-Iaidl-files-under, .....)

=====================================Android.mk=============================================

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_PACKAGE_NAME := DownLoadOTA

#加载java 代码
LOCAL_SRC_FILES := $(call all-java-files-under, src)

#加载jaidl 代码
LOCAL_SRC_FILES += $(call all-Iaidl-files-under, src/com/scrm/ota/aidl)

LOCAL_JAVA_LIBRARIES := \
    bouncycastle \
    org.apache.http.legacy \
    telephony-common \
    telephony-ext
LOCAL_STATIC_JAVA_LIBRARIES := \
    android-support-v4 \
    android-support-v7-appcompat \
    android-support-v7-preference \
    android-support-v7-recyclerview \
    android-support-v14-preference \
    android-support-customtabs \
    android-support-design \
    org.mokee.platform.internal \
    volley

LOCAL_STATIC_JAVA_AAR_LIBRARIES := \
    play-services-ads \
    play-services-ads-lite \
    play-services-basement

LOCAL_RESOURCE_DIR := \
    $(LOCAL_PATH)/res \
    frameworks/support/v7/appcompat/res \
    frameworks/support/v7/preference/res \
    frameworks/support/v7/recyclerview/res \
    frameworks/support/v14/preference/res \
    frameworks/support/design/res

LOCAL_AAPT_FLAGS := --auto-add-overlay \
    --extra-packages android.support.v7.appcompat \
    --extra-packages android.support.v7.preference \
    --extra-packages android.support.v7.recyclerview \
    --extra-packages android.support.v14.preference \
    --extra-packages android.support.v17.preference \
    --extra-packages android.support.design \
    --extra-packages com.google.android.gms

LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_MODULE_TAGS := optional
LOCAL_PRIVILEGED_MODULE := true
LOCAL_CERTIFICATE := platform

LOCAL_PROGUARD_ENABLED := obfuscation

ifneq ($(INCREMENTAL_BUILDS),)
    LOCAL_PROGUARD_ENABLED := disabled
    LOCAL_JACK_ENABLED := incremental
    LOCAL_DX_FLAGS := --multi-dex
    LOCAL_JACK_FLAGS := --multi-dex native
endif

include $(BUILD_PACKAGE)

 

=====================================Android.mk===========================================

阅读更多
换一批

没有更多推荐了,返回首页