Tighten the toolchain version check
Bug: 3076137 Change-Id: Ibd9f1f13916e31596f94a5b0a90293995da7f2cf
This commit is contained in:
parent
6e41a7483a
commit
d7d096df71
|
@ -113,14 +113,17 @@ endif
|
|||
|
||||
|
||||
# Check for the correct version of java
|
||||
java_version := $(shell java -version 2>&1 | head -n 1 | grep '[ "]1\.6[\. "$$]')
|
||||
java_version := $(shell java -version 2>&1 | head -n 1 | grep '^java .*[ "]1\.6[\. "$$]')
|
||||
ifneq ($(shell java -version 2>&1 | grep -i openjdk),)
|
||||
java_version :=
|
||||
endif
|
||||
ifeq ($(strip $(java_version)),)
|
||||
$(info ************************************************************)
|
||||
$(info You are attempting to build with the incorrect version)
|
||||
$(info of java.)
|
||||
$(info $(space))
|
||||
$(info Your version is: $(shell java -version 2>&1 | head -n 1).)
|
||||
$(info The correct version is: 1.6.)
|
||||
$(info The correct version is: Java SE 1.6.)
|
||||
$(info $(space))
|
||||
$(info Please follow the machine setup instructions at)
|
||||
$(info $(space)$(space)$(space)$(space)http://source.android.com/source/download.html)
|
||||
|
|
Loading…
Reference in New Issue