Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot setup on windows on accept sdk license #400

Open
Jacek-Gawel opened this issue Sep 10, 2024 · 0 comments
Open

Cannot setup on windows on accept sdk license #400

Jacek-Gawel opened this issue Sep 10, 2024 · 0 comments

Comments

@Jacek-Gawel
Copy link

Run amyu/setup-android@v4 with: sdk-version: 34 build-tools-version: 33.0.[2](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:2) cache-disabled: false generate-job-summary: true job-status: success env: JAVA_HOME: C:\actions-runner\_work\_tool\Java_Adopt_jdk\17.0.12-7\x64 JAVA_HOME_17_X64: C:\actions-runner\_work\_tool\Java_Adopt_jdk\17.0.12-7\x64 Environment details for Android SDK Variables ANDROID_SDK_ROOT: C:\Windows\system[3](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:3)2\config\systemprofile\.android\sdk ANDROID_HOME: C:\Windows\system32\config\systemprofile\.android\sdk Path C:\Windows\system32\config\systemprofile\.android\sdk\platform-tools C:\Windows\system32\config\systemprofile\.android\sdk\ndk-bundle C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools\latest\bin Restored Android SDK from Cache Not Found cache: 3[4](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:4)-33.0.2---v4 Installed Android SDK success cleanup success create directory start download cmdline-tools url: https://dl.google.com/android/repository/commandlinetools-win-10406996_latest.zip success download cmdline-tools path: C:\actions-runner\_work\_temp\ea3978a8-6148-4060-90aa-016fb36eb[5](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:5)fb start extract cmdline-tools.zip "C:\Program Files\PowerShell\7\pwsh.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command "$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\actions-runner\_work\_temp\ea3978a8-[6](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:6)148-4060-90aa-016fb36eb5fb', 'C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath 'C:\actions-runner\_work\_temp\ea39[7](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:7)8a8-6148-4060-90aa-016fb36eb5fb' -DestinationPath 'C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools' -Force } else { throw $_ } } ;" success extract cmdline-tools.zip path: C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools start rename C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools\cmdline-tools to latest C:\Windows\system32\cmd.exe /c "rename C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools\cmdline-tools latest" success rename C:\Windows\system32\config\systemprofile\.android\sdk\cmdline-tools\cmdline-tools to latest start accept licenses To see the logs executed by sdkmanager, set ACTIONS_STEP_DEBUG to true https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging Error: The process 'C:\Windows\system32\cmd.exe' failed with exit code [25](https://github.com/Aclas-Polska/aclas-cash-register/actions/runs/10801818929/job/29962707288#step:5:28)5

Error from runner:

  start accept licenses
  C:\Windows\system32\cmd.exe /c "yes | sdkmanager --licenses"
  'yes' is not recognized as an internal or external command,
  operable program or batch file.
  To see the logs executed by sdkmanager, set ACTIONS_STEP_DEBUG to true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant