Android编译"missing separator"错误的解决


今天在Android7.0源码环境中利用mm编译某个模块的时候,总是莫名的报错,报错信息如下:

device/actions/common/prebuilt/apk/actions/FileExplorer/Android.mk:15: *** missing separator.


看看Android.mk文件:
  1 ifeq ($(wildcard $(TOP)/device/actions/common/packages/AgingTest/Android.mk),)

  2

  3 LOCAL_PATH := $(call my-dir)

  4 include $(CLEAR_VARS)

  5 LOCAL_MODULE := prebuild_apk_AgingTest

  6 LOCAL_MODULE_STEM := prebuild_apk_AgingTest.apk

  7 LOCAL_SRC_FILES := app/AgingTest.apk

  8 LOCAL_MODULE_TAGS := optional

  9 LOCAL_MODULE_CLASS := APPS

 10 LOCAL_DEX_PREOPT := false

 11 LOCAL_CERTIFICATE := PRESIGNED

 12 LOCAL_MODULE_PATH := $(TARGET_OUT)/app

 13 include $(BUILD_PREBUILT)

 14

 15 endif #here need a space, why? without it, compile failed!

没发现什么错误啊,但就是编译不过啊,搞了很久,最后发现:居然是最后一行的"endif"后面没有空格导致的,加个空格就可以编过,这他娘的什么江湖啊,不是,什么规则啊,知道的同学,麻烦告知,不胜感激!


你可能感兴趣的:(android系统)