diff --git a/envsetup.sh b/envsetup.sh index a845a18f4..a9417b8d5 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -131,12 +131,11 @@ function setpaths() export PATH=$PATH$ANDROID_BUILD_PATHS unset ANDROID_JAVA_TOOLCHAIN + unset ANDROID_PRE_BUILD_PATHS if [ -n "$JAVA_HOME" ]; then export ANDROID_JAVA_TOOLCHAIN=$JAVA_HOME/bin - fi - export ANDROID_PRE_BUILD_PATHS=$ANDROID_JAVA_TOOLCHAIN - if [ -n "$ANDROID_PRE_BUILD_PATHS" ]; then - export PATH=$ANDROID_PRE_BUILD_PATHS:$PATH + export ANDROID_PRE_BUILD_PATHS=$ANDROID_JAVA_TOOLCHAIN: + export PATH=$ANDROID_PRE_BUILD_PATHS$PATH fi unset ANDROID_PRODUCT_OUT