카테고리 없음

Android can only be built by versions 3.81 and 3.82.) 에러 날때

테니스치는토끼 2017. 1. 31. 19:28
build 환경을 ubuntu 16.04로 업그레이드 하고 나니 make 버전이 올라가서..
Android can only be built by versions 3.81 and 3.82.) 와 같은 에러가 발생 하였음..

아래와 같은 main.mk 파일을 수정 해주면 된다.

$ vi ./build/core/main.mk

열고 3.81로 찾는다.
 40 # Check for broken versions of make.
 41 # (Allow any version under Cygwin since we don't actually build the platform there.)
 42 ifeq (,$(findstring CYGWIN,$(shell uname -sm)))
 43 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9\.].*//") = 3.81))
 44 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9\.].*//") = 3.82))
 45 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9\.].*//") = 4.1))
 46 $(warning ********************************************************************************)
 47 $(warning *  You are using version $(MAKE_VERSION) of make.)
 48 $(warning *  Android can only be built by versions 3.81 and 3.82.)
 49 $(warning *  see https://source.android.com/source/download.html)
 50 $(warning ********************************************************************************)
 51 $(error stopping)
 52 endif
 53 endif
 54 endif
 55 endif

이렇게 추가해주면 됨

원본
http://hybridego.net/entry/Android-can-only-be-built-by-versions-381-and-382