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 enable "Gradle Managed Virtual Devices" tests #85

Open
atsushieno opened this issue Jun 8, 2021 · 4 comments
Open

Cannot enable "Gradle Managed Virtual Devices" tests #85

atsushieno opened this issue Jun 8, 2021 · 4 comments
Labels

Comments

@atsushieno
Copy link
Owner

With Android Gradle Plugin 7.1.* we can define virtual Android targets (emulators) for testing, to fix testing environment for stable test results.

https://developer.android.com/studio/preview/features

I tried it in aapbareboneplugin, but as of Bumblebee alpha02 it results in test run freeze at 98% progress. Not sure if it is due to some test failure or some AGP test runner failure, but AGP not giving the details is problematic and we shouldn't make such changes for not-runnable tests. It for sure breaks build.gradle compatibility with Arctic Fox, so we should bring in the changes only if it brings benefits.

@atsushieno atsushieno added enhancement New feature or request testing upstream labels Jun 8, 2021
@atsushieno atsushieno changed the title enable "Gradle Managed Virtual Devices" tests Cannot enable "Gradle Managed Virtual Devices" tests Jun 10, 2021
@atsushieno
Copy link
Owner Author

In 2022 it is still left not working: https://issuetracker.google.com/issues/182888311

atsushieno added a commit that referenced this issue Feb 2, 2022
I still have no idea why it started working locally on my machine, but
so far we should enable it on CI builds and see if it works.

related issue: #85
@atsushieno
Copy link
Owner Author

After numbers of attempts it is locally working, without any informative knowledge. Yet it does not work on CI build. It seems that GitHub Actions cannot deal with KVM's nested virtualization. Or KVM nested virtualization is not ready for Android development: https://stackoverflow.com/questions/62125398/nested-kvm-virtual-machines-andoid-studio-4-0-avd-inside-debian-10-vm

@atsushieno
Copy link
Owner Author

It might be finally time to work on this task (M1 macos runner required though) https://stackoverflow.com/questions/76126480/android-github-action-with-an-apple-silicon-m1-runner

@atsushieno
Copy link
Owner Author

^ was not the time really as it was not available for non-enterprise, but now M1 runner is available to everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant