Fix building desugared library HEAD on buildbot
Also add path build-tools/32.0.0 in fake Android SDK dir.
Change-Id: I5a2787b0578a63643de8e3d4949ac36735c723bf
diff --git a/tools/archive_desugar_jdk_libs.py b/tools/archive_desugar_jdk_libs.py
index 931fe23..b475941 100755
--- a/tools/archive_desugar_jdk_libs.py
+++ b/tools/archive_desugar_jdk_libs.py
@@ -150,6 +150,12 @@
def setUpFakeAndroidHome(androidHomeTemp):
# Bazel will check if 30 is present then extract android.jar from 32.
# We copy android.jar from third_party to mimic repository structure.
+ subpath = os.path.join(androidHomeTemp, "build-tools")
+ cmd = ["mkdir", subpath]
+ subprocess.check_call(cmd)
+ subpath = os.path.join(subpath, "32.0.0")
+ cmd = ["mkdir", subpath]
+ subprocess.check_call(cmd)
subpath = os.path.join(androidHomeTemp, "platforms")
cmd = ["mkdir", subpath]
subprocess.check_call(cmd)