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

Fix Github Actions pipelines #10928

Merged
merged 6 commits into from
Jan 13, 2024
Merged

Fix Github Actions pipelines #10928

merged 6 commits into from
Jan 13, 2024

Conversation

yairm210
Copy link
Owner

@yairm210 yairm210 commented Jan 13, 2024

Github Actions SeekableByteChannel error on Android SDK Platform-Tools 34.0.5:

Preparing "Install Android SDK Platform-Tools (revision: 34.0.5)".

6 actionable tasks: 6 up-to-date
FAILURE: Build failed with an exception.

* What went wrong:
'void org.apache.commons.compress.archivers.zip.ZipFile.<init>(java.nio.channels.SeekableByteChannel)'

Solution:

  • update java version to 17
  • add android-actions/setup-android@v3 step

Neither step by itself solved the problem

Another new error that indicates that Github Actions changed the default Android stuff:

Error: Couldnt find the Android build tools @ /usr/local/lib/android/sdk/build-tools/29.0.3
Error: Unable to locate executable file: /usr/local/lib/android/sdk/build-tools/29.0.3/zipalign. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

From sign-android-release


Okay, found the source!

Android SDK tools were indeed changed here removing all older build tools
High chance that this will break our Android pipeline because the location of everything is changing
What fun

@yairm210 yairm210 changed the title Updated setup-gradle in bid to fix install Fix Github Actions pipelines Jan 13, 2024
@yairm210 yairm210 merged commit 42a8387 into master Jan 13, 2024
6 checks passed
@yairm210 yairm210 deleted the setup-gradle-update branch January 13, 2024 17:47
@SomeTroglodyte
Copy link
Collaborator

You mean actions/runner-images#9094 knowingly broke all runners on all projects using Android build tools in their workflows without even thinking of issuing some "breaking change" notice? 👍

@SeventhM
Copy link
Collaborator

Ahhhh, that explains things

You mean

Looks like they linked actions/runner-images#8952 which did warn ahead of time, just not in a way we'd catch. Well, we were considering updating our stuff anyways so I guess all this does is increase our timeline

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

Successfully merging this pull request may close these issues.

3 participants