mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1172] Issue: SDK location not found Android build #653
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#653
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cinder92 on GitHub (May 18, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1172
System information
act: nektos/act-environments-ubuntu:18.04actversion: 0.2.26Expected behaviour
Build android apk successfully
Actual behaviour
SDK not found
Workflow and/or repository
Steps to reproduce
run
act --env-file .env -P ubuntu-latest=nektos/act-environments-ubuntu:18.04actoutput@catthehacker commented on GitHub (May 21, 2022):
Did you install Android SDK?
@github-actions[bot] commented on GitHub (Jun 21, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@PrasannaKumarChalla commented on GitHub (Dec 9, 2022):
@catthehacker I'm running into the same issue, when you asked did you install android sdk here https://github.com/nektos/act/issues/1172#issuecomment-1133478922, where should I install android sdk?. Doesn't ubuntu-latest come with android sdk by default?.
@deepraj02 commented on GitHub (Apr 1, 2023):
Any Update guys I'm also getting the same error
@axstel commented on GitHub (Jun 14, 2023):
Same here, any update?
@maxfie1d commented on GitHub (Aug 7, 2023):
Any update?
@andylvua commented on GitHub (Aug 30, 2023):
I had the same problem as the author.
It looks like even the
catthehacker/ubuntu:fullimages don't provide the Android SDK like the GitHub runners do.As a temporary solution, you can add the following step to your workflow:
It will only run when using
actlocally and will install the Android SDK. After that Gradle works without errors. No additional actions are required@ChristopherHX commented on GitHub (Aug 30, 2023):
The following is outdated
catthehacker/ubuntu:full, I consider to replace it with https://github.com/ChristopherHX/runner-image-blobs/pkgs/container/runner-images/122920815?tag=ubuntu22-runner-usr-local-opt-snap-20230821.1.0 (Experimental, dump of ubuntu-22.04 vm)Prepare to have 80GB+ Storage (ca. 20GB gzip layers).
I have dumped the docker image by manually uploading tar layers to the registry, because GitHub Hosted Runners can not even pull the image via docker (due to it's size).
Then you have really 99% of the same filesystem as on GitHub Hosted Runners (maybe some stuff doesn't work in a docker container, however a script might be able to create a lxd vm etc.).
@andylvua commented on GitHub (Aug 30, 2023):
Totally agree. However, if the issue is caused by Android SDK only, then
catthehacker/ubuntu:act-22.04with an additionally installed SDK is sufficient. I referred tocatthehacker/ubuntu:fullbecause it's the default image used when you selectLargeimage on the first run.@tmo1 commented on GitHub (Mar 11, 2025):
I'm hitting this problem as well. @andylvua's "temporary solution" works for me, but it's kludgy. If there's no better solution, shouldn't this issue remain open?