build/core/Makefile:160: *** BUILD_FINGERPRINT cannot contain spaces: "Android/aosp_arm/generic:7.1.1/NMF26F/eng.xxx.20170701.150615 :eng/test-keys".
解决方法
build/core/Makefile:
# The string used to uniquely identify the combined build and product; used by the OTA server.
ifeq (,$(strip $(BUILD_FINGERPRINT)))
$(warning 11111)
ifneq ($(filter eng.%,$(BUILD_NUMBER)),)
$(warning 22222)
# Trim down BUILD_FINGERPRINT: the default BUILD_NUMBER makes it easily exceed
# the Android system property length limit (PROPERTY_VALUE_MAX=92).
#BF_BUILD_NUMBER := $(BUILD_NUMBER) #$(shell echo $${USER:0:6})$(shell $(DATE) +%m%d%H%M)
BF_BUILD_NUMBER := $(BUILD_NUMBER)
else
$(warning 33333)
BF_BUILD_NUMBER := $(BUILD_NUMBER)
endif
BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):$(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS)
#endif
else
$(warning 44444)
endif
ifneq ($(words $(BUILD_FINGERPRINT)),1)
$(error BUILD_FINGERPRINT cannot contain spaces: "$(BUILD_FINGERPRINT)")
endif