Android.mk:47: *** missing separator. Stop.(endif报错)

相信其他朋友也有遇到过此类问题,但我这个问题更加隐秘,不仔细检查还真发现不了。(注:以下代码是修改后的,可以编译通过)

ifeq ($(strip $(MTK_FINGERPRINT_SUPPORT)),yes)
ifneq ($(filter $(MTK_FINGERPRINT_SELECT), AAA),)

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := fingerprint.default
LOCAL_SRC_FILES := ./lib/hw/fingerprint.default.so
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .so
LOCAL_MULTILIB :=32
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/hw
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE := fingerprint.default
LOCAL_SRC_FILES := ./lib64/hw/fingerprint.default.so
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_SUFFIX := .so
LOCAL_MULTILIB :=64
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib64/hw
OVERRIDE_BUILT_MODULE_PATH := $(TARGET_OUT_INTERMEDIATE_LIBRARIES)
include $(BUILD_PREBUILT)

include $(CLEAR_VARS) 
LOCAL_MODULE := xxxxxxxxxxxxxxxxxxxx.ta
LOCAL_MODULE_CLASS := app
LOCAL_MODULE_PATH := $(TARGET_OUT)/app/t6
LOCAL_SRC_FILES := ./app/t6/$(LOCAL_MODULE).ta  
LOCAL_MODULE_SUFFIX := .ta
include $(BUILD_PREBUILT)

endif 

endif 
报错地方:最后两个endif,提示missing separator. Stop.

报错原因:endif后面未加空格,可用鼠标点击endif后面,看是否存在空格。

你可能感兴趣的:(Android.mk)