From a02cb37ca7757d33f1430042503f34e8289ffebd Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Fri, 29 Aug 2014 01:19:33 -0700 Subject: [PATCH] Also set ANDROID_SDK_HOME Hopefully will help with the "PANIC" crash of android emulator --- tools/cordova-scripts/common_env.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cordova-scripts/common_env.sh b/tools/cordova-scripts/common_env.sh index ee6f93b78f..c845a699e6 100644 --- a/tools/cordova-scripts/common_env.sh +++ b/tools/cordova-scripts/common_env.sh @@ -45,9 +45,11 @@ if [ -z "$USE_GLOBAL_ADK" ] ; then export PATH="${ANT_HOME}/bin:${PATH}" export HOME="${ANDROID_BUNDLE}" + export ANDROID_SDK_HOME="${ANDROID_BUNDLE}" else # to use a global ADK we don't set PATH, ANT_HOME # relying that they are installed and available globally + export ANDROID_SDK_HOME="${HOME}" true fi