From 1084631c6f496294eff6b6fdf745f9e8cf75bfde Mon Sep 17 00:00:00 2001 From: Neil Fuller Date: Wed, 16 Dec 2015 18:59:08 +0000 Subject: [PATCH] Add a warning if developers are not using JDK 8 Bug: 25786468 Change-Id: Ifaa782314d839079c17a572301550a0c2924f8c5 --- envsetup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/envsetup.sh b/envsetup.sh index f266f1ac55..cb3dc10737 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1427,6 +1427,9 @@ function set_java_home() { if [ ! "$JAVA_HOME" ]; then if [ ! "$EXPERIMENTAL_USE_JAVA8" ]; then + echo JDK 8 will soon become the default. Please install it now. + echo Also: \"export EXPERIMENTAL_USE_JAVA8=true\" + echo See http://go/android-jdk8-discuss case `uname -s` in Darwin) export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)