-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Gradle Managed Devices #76
Comments
The action you are using here spins emulator before the GMD. There is barely enough resources to run one emulator. |
Even with this, I run into same error
|
Even
shows me
a running example would be nice |
Sorry, what do you mean by a running example? The action doesn't mention anything about compatibility with GMD. If it doesn't spin the device requested by your GMD configuration, then this means it's a GMD configuration problem If you really want to use GMD (which you shouldn't in my personal opinion), then I suggest starting out by copying the config from the action that works into the GMD spec of |
Exactly this I try to test, if it works with this/any action
Hmm, not sure. I use sample to test with action. At least locally it works like a charm
Just curious, why do you not recommend it ?
What do you mean ? |
It's quite possible that your local environment is much faster than the macos worker on GitHub via macstadium hence the need to tweak the emulator down in terms of resource consumption. GMD can run any emulator configuration with arbitrary resolution of screen. The hardware on GH worker is very limited and needs as fast as possible emulator which is setup here in the action. When you try to use GMD on your laptop/server you control the resources and you can allocate more CPU/RAM. This is not the case on GH and practically there is no much you can change on GH in the emulator in terms of parameters of the emulator itself. If you ask for too much - the emulator will just fail booting in time. The action has nothing to do with GMD since GMD uses avdmanager transitively via a separate process and utilises the https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:utp/android-device-provider-ddmlib/. As for why I advise not to use GMD - spinning up devices for testing is not a build system concern and should be solved in a different architectural component To make your setup work you need to provide the same config of emulator that is known to work as of now on GH to the GMD |
Thanks a lot for the explanation.
This is the point where I've no knowledge, how to figure out my config of emulator and apply to GDM ?
I guess I've no chance to apply it to GDM device |
I tried to use Gradle Managed Devices https://developer.android.com/studio/test/gradle-managed-devices
Execution failed for task ':sample:nexusOneApi30Setup'.
The text was updated successfully, but these errors were encountered: