File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -88,10 +88,16 @@ function buildProject() {
8888}
8989
9090if [[ ! -f " local.properties" ]]; then
91- if [[ -n " $ANDROID_SDK_HOME " ]]; then
92- echo " sdk.dir=$ANDROID_SDK_HOME " >> local.properties
91+ if [[ -n " $ANDROID_HOME " ]]; then
92+ echo " sdk.dir=$ANDROID_HOME " >> local.properties
9393 elif [[ -n " $ANDROID_SDK_ROOT " ]]; then
9494 echo " sdk.dir=$ANDROID_SDK_ROOT " >> local.properties
95+ elif [[ -n " $ANDROID_SDK_HOME " ]]; then
96+ if [[ -d " $ANDROID_SDK_HOME /platform-tools" ]]; then
97+ echo " sdk.dir=$ANDROID_SDK_HOME " >> local.properties
98+ elif [[ -d " $ANDROID_SDK_HOME /../platform-tools" ]]; then
99+ echo " sdk.dir=$( realpath $ANDROID_SDK_HOME /../platform-tools) " >> local.properties
100+ fi
95101 elif [[ -n " $ANDROID_SDK " ]]; then
96102 echo " sdk.dir=$ANDROID_SDK " >> local.properties
97103 else
You can’t perform that action at this time.
0 commit comments