Skip to content

Fix Android build failures in .NET 10 CI environment - #182

Merged
winnerspiros merged 1 commit into
masterfrom
fix-android-build-net10-aot-errors-6633183801022029856
Apr 12, 2026
Merged

Fix Android build failures in .NET 10 CI environment#182
winnerspiros merged 1 commit into
masterfrom
fix-android-build-net10-aot-errors-6633183801022029856

Conversation

@google-labs-jules

Copy link
Copy Markdown

I have addressed the build failure in the Android APK workflow by making the following adjustments:

  1. Disabled Profiled AOT: In osu.Android.props, I set AndroidEnableProfiledAot to false. The build was failing because the Microsoft.NET.Runtime.MonoAOTCompiler.Task could not be resolved. Since RunAOTCompilation was already disabled (to avoid issues with trimming being off), Profiled AOT should also be disabled in this environment.
  2. Removed global.json: This file was pinning the .NET SDK version to 10.0.100. Removing it allows the GitHub Actions runner to use the latest available SDK (e.g., 10.0.103), which improves compatibility with current workloads.
  3. Updated Release Workflow: I added a dotnet workload update step before the Android workload installation in .github/workflows/release.yml. This ensures that the runner has the most up-to-date manifests for the .NET 10 workloads.

A sanity build of the core osu.Game project was performed to ensure no regressions in the main codebase.


PR created automatically by Jules for task 6633183801022029856 started by @winnerspiros

- Disabled Profiled AOT in `osu.Android.props` to resolve Mono AOT compiler SDK resolution errors.
- Removed `global.json` to allow CI runners to use the latest available .NET 10 SDK version.
- Added `dotnet workload update` to the release workflow to ensure fresh workload manifests before installation.
- This combination of changes ensures the build can proceed without attempting to resolve missing AOT components that are incompatible with the current project configuration (trimming disabled).
@google-labs-jules

Copy link
Copy Markdown
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@winnerspiros
winnerspiros merged commit 39a8a21 into master Apr 12, 2026
6 of 15 checks passed
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.

1 participant