Skip to content

Commit 082887d

Browse files
committed
Try working around a build tools error on Windows.
1 parent 3b0942e commit 082887d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/integration_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ jobs:
449449
timeout_minutes: 10
450450
max_attempts: 3
451451
command: scripts/gha/install_test_workflow_prereqs.sh -p Android
452+
- name: Fix dexer command line on Windows
453+
if: startsWith(matrix.os, 'windows')
454+
shell: bash
455+
run: sed -i~ 's/-Djava\.ext\.dirs="\%frameworkdir\%"//' "${ANDROID_HOME}/build-tools/*/d8.bat"
452456
- name: Fetch prebuilt packaged SDK from previous run
453457
uses: dawidd6/action-download-artifact@v2
454458
if: ${{ github.event.inputs.test_packaged_sdk != '' }}

android_build_files/extract_and_dex.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,8 @@ def defineExtractionTasks(String resourceName, String buildType) {
6161
String dex_path = "${sdk_dir}/build-tools/${buildToolsVersion}/d8"
6262
if (org.gradle.internal.os.OperatingSystem.current().isWindows()) {
6363
dex_path = "${dex_path}.bat"
64-
65-
commandLine "cmd", "/c", "echo", "${dex_path}",
66-
"$buildDir/classes.jar",
67-
"--output",
68-
"$dexedJar"
6964
}
70-
65+
7166
commandLine "${dex_path}",
7267
"$buildDir/classes.jar",
7368
"--output",

0 commit comments

Comments
 (0)