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

./gradlew assembleDebug error on HybridApp via GitHub Actions #55659

Open
AndrewGable opened this issue Jan 23, 2025 · 2 comments
Open

./gradlew assembleDebug error on HybridApp via GitHub Actions #55659

AndrewGable opened this issue Jan 23, 2025 · 2 comments
Assignees
Labels
Monthly KSv2 Reviewing Has a PR in review

Comments

@AndrewGable
Copy link
Contributor

Problem

Android HybridApp commonly fails to build via ./gradlew assembleDebug in the Mobile-Expensify directory via GitHub actions. Here is an example: https://github.com/Expensify/App/actions/runs/12919156867/job/36029088587

Downloading https://services.gradle.org/distributions/gradle-8.10.2-all.zip
.........................................................................................................................................................................................................................

Welcome to Gradle 8.10.2!

Here are the highlights of this release:
 - Support for Java 23
 - Faster configuration cache
 - Better configuration cache reports

For more details see https://docs.gradle.org/8.10.2/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
> Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:shared:processResources NO-SOURCE
> Task :gradle-plugin:settings-plugin:pluginDescriptors
> Task :gradle-plugin:settings-plugin:processResources
> Task :gradle-plugin:shared:compileKotlin
> Task :gradle-plugin:shared:compileJava NO-SOURCE
> Task :gradle-plugin:shared:classes UP-TO-DATE
> Task :gradle-plugin:shared:jar
> Task :gradle-plugin:settings-plugin:compileKotlin
> Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:settings-plugin:classes
> Task :gradle-plugin:settings-plugin:jar

FAILURE: Build failed with an exception.

* Where:
Settings file '/home/runner/work/App/App/Mobile-Expensify/Android/settings.gradle' line: 6

* What went wrong:
A problem occurred evaluating settings 'Android'.
> Could not find method autolinkLibrariesFromCommandForPath() for arguments [../../] on extension 'reactSettings' of type com.facebook.react.ReactSettingsExtension.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
8 actionable tasks: 8 executed
> Get more help at https://help.gradle.org.

BUILD FAILED in 1m 21s
Error: Process completed with exit code 1.

Solution

Fix it!

cc @staszekscp

@AndrewGable AndrewGable added the Daily KSv2 label Jan 23, 2025
@AndrewGable AndrewGable self-assigned this Jan 23, 2025
@AndrewGable
Copy link
Contributor Author

We think this is related to some caching, as when we delete caches it goes away.

Copy link

melvin-bot bot commented Feb 17, 2025

This issue has not been updated in over 15 days. @AndrewGable eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

1 participant