question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android build fail because required parameters are not passed

See original GitHub issue

Bug description

Builds from main branch fail for Android because the required Android parameters are no longer passed

How to reproduce

  • Run an Android build using game-ci/unity-builder@main
  • Build errors

Expected behavior

Build should succeed

Additional details

Example failing build: https://github.com/finol-digital/Card-Game-Simulator/runs/5065670391?check_suite_focus=true#step:6:377

In particular, it seems that ANDROID_KEYSTORE_BASE64 and ANDROID_SDK_MANAGER_PARAMETERS are not going through.

EDIT: The break is from within the past week. Not sure if it was cloud runner v2 or the initial mac build support that has the regression: https://github.com/game-ci/unity-builder/compare/v2.0.0-alpha-14...main The test workflows all passed for both of those, as we don’t have a scenario for Android builds that require a custom keystore (maybe I should create a separate issue for adding this test scenario?).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
frostebitecommented, Feb 5, 2022

Will explore the best way to prevent this with a test case too. 😃

Sorry for any disruption.

On Sat, 5 Feb 2022, 01:50 Markus Fisher, @.***> wrote:

Thank you for the additional clarity. I will look further tomorrow and get back to you.

On Fri, 4 Feb 2022, 21:17 David Finol, @.***> wrote:

The flow of these parameters doesn’t appear to have been altered significantly at all in cloud runner V2

Right, I believe it is just lines 17-20 of image-environment-factory.ts (which was newly created in cloud runner V2) that is causing this error. Removing those 4 lines should fix the error, but I don’t know if they were added to fix some other issue in cloud runner?

— Reply to this email directly, view it on GitHub https://github.com/game-ci/unity-builder/issues/334#issuecomment-1030356374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANLQGA6NPQ62VZE5H3WYQDUZQ7ADANCNFSM5NRVLL3A . You are receiving this because you were mentioned.Message ID: @.***>

1reaction
davidmfinolcommented, Feb 22, 2022

I went ahead and merged the PR. If it breaks something in cloud runner, we can fix in another issue/PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"error":true,"message":"required parameters are not available ...
As I have read your code, it is correct no problem in your code. but the only problem is the postman request data....
Read more >
Building Android | Android Open Source Project
If run with no arguments, lunch prompts you to choose a target from the ... This target is here because the default target...
Read more >
Improve code inspection with annotations - Android Developers
This situation means that your app may render incorrectly or fail to run at all, even if you use code inspection. Annotations allow...
Read more >
Pass data between destinations - Android Developers
To pass data between destinations, first define the argument by adding ... whether the argument is nullable, and a default value, if needed....
Read more >
Gradle tips and recipes - Android Developers
Configure dynamic version codes. By default, when Gradle generates APKs for your project, each APK has the same version information, as specified in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found