-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 project update to Gradle 8 and Java 17 build fails without reason. #7915
Comments
Hello @Canato. We will take a look. |
Hello @Canato . Is it possible to provide more detailed repro steps with code example? It can be workflow in your repo or create separate one if it private. Also, can you share link with passing and failing runs? |
@sergei-pyshnoi will take me some days to return for you with it because is a busy week, but will do |
Hello @Canato . Unfortunately, due missing additional information and repro steps, I have to close this tread. Please come back when you have more detailed information and I will reopen issue for you. If you have additional questions, feel free to ask. |
If androids R8 is enabled, it could be that ubuntu is running out of memory. In our case, this resulted in exit code 143. To fix this problem, you can increase the swapfile: https://stackoverflow.com/a/76921482/1185087
|
Installing Java 11 fixed this for me |
Hello friends, I recently created a project with Gradle 8 and everything is fine until I make a release and activate R8, then the API stops working. |
I'm so sorry for taking so long to return to this. Gradle takes too much memory and fails without a clear error log. Based on the thread/issue above, I changed my runner for a GitHub Large runner, and it worked perfectly; later, my team built a device farm locally running on a Mac, and everything ran smoothly. So it was (at least in my case) a runner memory/capacity issue. @GoudarziDeveloper, I suggest you open another issue, but check your logs. R8 became more "aggressive" on this version, but it generates a file under the build folder with all the new rules you need to add to your guard files, literally copying and pasting. |
Description
I update my Android project to
Gradle 8
andJava 17
.After that, my GitHub Actions stop to work for assemble gradle command.
(more after some context)
Context
Gradle
https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
(before7.5.1-bin
)8.0.2
(before7.4.0
)Java
VERSION_17
(before JavaVersion.VERSION_11
)Fixed update issues
Gradle properties added
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=4096m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Github Actions Workflow
Gradle commands of each job
detektAllModules
✅ (custom detekt/lint gradle method)testPhoneDebugUnitTest
✅:app:legacy:base:test :app:legacy:domain:test :app:legacy:data:test :app:data:socketio-client:test :app:data:mqtt-server:test :app:data:network-exceptions:test
✅Obs:
Github Actions for
assemblePhoneDebug
No error is shown, but after re-running enabling
debug logging
, we can see:The build took 6m to fails, we have a timeout of 30min
Before re-running
After re-run with debug
Platforms affected
Runner images affected
Image version and build link
Not sure where
"Set up job" -> "Runner Image" -> "Version"
is.But we are using the default GitHub runner's latest ubuntu version.
Is it regression?
No
Expected behavior
We should have a final build or a clear error message
Actual behavior
Fails without explanation
Repro steps
Android project with gradle 8, Java 17, using GitHub Actions with the latest Ubuntu should reproduce.
The text was updated successfully, but these errors were encountered: