Android N在lunch时出错的解决方法
在lunch的时候出现如下错误:
build/core/config.mk:635: COMMON_GLOBAL_C(PP)FLAGS changed
build/core/config.mk:639: *** bailing...。 停止。
** Don't have a product spec for: 'xxx'
** Do you have the right repo manifest?
原来Android N已经不允许修改编译的全局变量,定位到build/core/config.mk:
#ifneq ($(COMMON_GLOBAL_CFLAGS)$(COMMON_GLOBAL_CPPFLAGS),)
#$(warning COMMON_GLOBAL_C(PP)FLAGS changed)
#$(info *** Device configurations are no longer allowed to change the global flags.)
#$(info *** COMMON_GLOBAL_CFLAGS: $(COMMON_GLOBAL_CFLAGS))
#$(info *** COMMON_GLOBAL_CPPFLAGS: $(COMMON_GLOBAL_CPPFLAGS))
#$(error bailing...)
#endif
注释掉这段代码
重新lunch,问题解决!