Skip to content

Commit b5ec18a

Browse files
authored
Uninstall platforms;android-33-ext4 when building testapps (#604)
Resolves failed build testapps on windows-latest Android
1 parent b7bf728 commit b5ec18a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

scripts/gha/build_testapps.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,10 +547,17 @@ def patch_android_env(unity_version):
547547
# If this continues to be a problem, this logic might need to be smarter, to remove all versions newer than 32,
548548
# but currently the GitHub runners have 33 as their max.
549549
logging.info("Uninstall Android platform android-33")
550-
_run([sdkmanager_path, "--uninstall", "platforms;android-33"], check=False)
550+
_run([sdkmanager_path, "--uninstall", "platforms;android-33", "platforms;android-33-ext4"], check=False)
551551
except Exception as e:
552552
logging.exception("Failed to uninstall Android platform android-33")
553-
553+
554+
try:
555+
# List the installed packages to make it easier to notice if any incompatible packages are present.
556+
logging.info("Listing installed sdks")
557+
_run([sdkmanager_path, "--list_installed"], check=False)
558+
except Exception as e:
559+
logging.info(str(e))
560+
554561
os.environ["UNITY_ANDROID_SDK"]=os.environ["ANDROID_HOME"]
555562
os.environ["UNITY_ANDROID_NDK"]=os.environ["ANDROID_NDK_HOME"]
556563
os.environ["UNITY_ANDROID_JDK"]=os.environ["JAVA_HOME"]

0 commit comments

Comments
 (0)