-
Notifications
You must be signed in to change notification settings - Fork 70
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
Has this been tried on arm64 runners? #283
Comments
If install succeeds, you should be able to run - uses: android-actions/setup-android@v2
- run: sdkmanager --list I have not tried this on arm64 and don't have access to hardware to test it out. sdkmanager, as far as I know, is a regular java program, should just work. Key word being should, not must. If things are weird, would suggest you to try and install Command line tools manually and verify that they do actually work on arm64 box without adding GitHub runner into the mix. |
It does look like parts of the SDK might not be available for Linux arm64. I thought everything was 100% java, but guess that is not true. I understand not having linux arm64 hardware. On AWS a reasonable server can be had for testing for $0.04 to $0.08 per hour. An afternoon's work could be had for a fraction of a $1. I'm sure people would be happy to chip in a little for AWS machine time. Or hit AWS up for free time to get more software running on their ARM servers. Just a thought. |
No hardware was more of a $genericExcuse. I would look into it, but I have stuff to do. This requires setting up EC2, verifying that sdkmanager actually works there, setting up a self-hosted GitHub runner. Sounds like an afternoon of effort. Pull Requests more than welcome though. |
I just ran into this today, I was trying to run a workflow with The problem as I understood is essentially that Having the |
I see. We install - name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
packages: 'platform-tools' # instead of the default 'tools platform-tools'
- run: sdkmanager --channel=3 emulator
- run: sdkmanager tools |
That would be useful regardless of this issue! e.g. this setup could be simplified a lot. Alternatively, specifically for this issue, you might also consider downloading and installing the right emulator for the right architecture so people never ever run into this issue. Sadly on GH-hosted runners it's not possible to test this :( |
Can't do it today, but I'll implement the package list soon. (Unless you want to do it yourself :D ). I don't have access to a Mac, so you'll have to check if the canary emulator workaround actually works, before we put it here |
Is there any branch or pre-release to test. When do you plan to release?
On arm64 runner, using action android-actions/setup-android v2 or v3, not able complete Android SDK setup.
|
v3.2.0 is available. @TWiStErRob , @juliusiqbalfn , can y'all check if this usecase works? - uses: android-actions/setup-android@v3
with:
packages: 'platform-tools' # instead of the default 'tools platform-tools'
- run: sdkmanager --channel=3 emulator
- run: sdkmanager tools |
There are use cases but still fails with emulator not found in arm64 runner w/o channel argument.
Below commands listed no emulator packages.
|
I am now able to complete setup with below commands.
Still fails with below errors, working on that
Might try
Instead of
|
@remixer-dec previously linked an issue ( 741g/android-emulator-m1-preview#14 (comment) ) which documents build-tools;30.0.3 having a dependency on emulator. Later build-tools versions don't have that dependency anymore. I suggest you could try uninstalling "build-tools;30.0.3", but in that case you won't be able to build Android projects which want to compile on SDK 30 (compile, not target). - uses: android-actions/setup-android@v3
with:
packages: 'platform-tools' # instead of the default 'tools platform-tools'
- run: sdkmanager --uninstall "build-tools;30.0.3"
- run: sdkmanager tools (I should just get an arm VM instead...) |
Finally got ADB and Emulator to work in arm64/aarch64 without KVM using below step.
|
I am trying to use this package to set up self-hosted runners on arm64 AWS instances.
I get the following error and the setup-android step ends after the following:
and then later it appears the SDK is either not installed or the environment variables aren't configured, because I see:
How can I confirm the SDK is installed, and if it is and I need to set the environment var myself, where is the SDK installed?
The text was updated successfully, but these errors were encountered: