-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Android build breakage with ubuntu-20.04 (version: 20210330.1) #3078
Comments
Hi @speedym! |
@miketimofeev I have tried a downgrading a few packages manually, and it turned out that the upgrade from CMake 3.19.7 -> CMake 3.20.0 broke our builds. I think the best way forward for us is to use the following action to downgrade CMake as a workaround: If CMake 3.20.0 causes more breakage to your users, maybe you can consider rolling back that package upgrade. In this particular case, Gradle is spawning CMake and CMake is crashing. The gradle error message was super bad. :/ |
Thank you for sharing investigation results @speedym , Usually, we follow strategy to install only latest version of tool to images and don't downgrade it. But yes, we definitely will monitor further impact to see how many customers are affected by this issue. |
All clear, thanks for your support! :) |
Fixes android builds (actions/runner-images#3078).
Fixes android builds (actions/runner-images#3078).
Fixes android builds (actions/runner-images#3078).
Fixes android builds (actions/runner-images#3078).
Fixes android builds (actions/runner-images#3078).
We hit the same issue (more context here: https://gitlab.kitware.com/cmake/cmake/-/issues/22021). It seems Android Studio 4.2 is the first version that is compatible with CMake 3.20, but Android Studio 4.2 is not yet released and not used in these virtual environments. It seems like upgrading to CMake 3.20 before upgrading to Android Studio 4.2 doesn't make sense and will break most Android Studio / Gradle based builds that use CMake. |
To workaround build error with NullPointerException (actions/runner-images#3078).
To workaround build error with NullPointerException (actions/runner-images#3078).
@ryantrem thanks for the update, very useful comment! Do you perhaps know which GitHub Actions Android package name is required for CMake 3.20 to work? I see that latest Android SDK Build-tools is 30.0.3 & installed gradle is 7.0.2: https://github.com/actions/virtual-environments/blob/ubuntu20/20210606.1/images/linux/Ubuntu2004-README.md |
I don’t know, but I’d love to so I know whether it’s safe to remove our hacks to downgrade cmake! |
Fixes android builds (actions/runner-images#3078).
Description
After yesterday's upgrade to 20210330.1 all our Android builds have started failing with java.lang.NullPointerException.
The error produced is the following (very unhelpful):
Area for Triage:
Question, Bug, or Feature?:
Bug
Virtual environments affected
Image version
20210330.1
Expected behavior
Android build should work fine.
Actual behavior
Android build is crashing with java.lang.NullPointerException.
Repro steps
Try building a project which includes Android C++ native code, and observe the crash.
The text was updated successfully, but these errors were encountered: