Skip to content

Bump Android SupportedOSPlatformVersion from 21 to 24 in templates#34736

Merged
jfversluis merged 2 commits intonet11.0from
copilot/fix-dotnet-maui-android-build
Apr 2, 2026
Merged

Bump Android SupportedOSPlatformVersion from 21 to 24 in templates#34736
jfversluis merged 2 commits intonet11.0from
copilot/fix-dotnet-maui-android-build

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

  • Bump SupportedOSPlatformVersion for Android from 23.0 to 24.0 in src/Templates/src/templates/maui-mobile/MauiApp.1.csproj
  • Bump SupportedOSPlatformVersion for Android from 23.0 to 24.0 in src/Templates/src/templates/maui-lib/MauiLib1.csproj
  • Bump SupportedOSPlatformVersion for Android from 23.0 to 24.0 in src/Templates/src/templates/maui-multiproject/MauiApp.1.Droid/MauiApp.1.Droid.csproj
  • Rebased on net11.0 branch
  • All templates now consistent at Android 24.0 (matching Blazor templates)

Copilot AI changed the title [WIP] Fix build issue for dotnet new maui project on Android Bump Android SupportedOSPlatformVersion from 21 to 23 in templates Mar 30, 2026
Copilot AI requested a review from jfversluis March 30, 2026 11:49
kubaflo
kubaflo previously approved these changes Mar 30, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 34736

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 34736"

@jfversluis jfversluis marked this pull request as ready for review March 30, 2026 20:12
Copilot AI review requested due to automatic review settings March 30, 2026 20:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates .NET MAUI project templates to target a higher minimum Android API level to avoid build failures caused by newer AndroidX dependencies requiring minSdkVersion 23.

Changes:

  • Bumped Android SupportedOSPlatformVersion from 21.0 to 23.0 in the maui-mobile template.
  • Bumped Android SupportedOSPlatformVersion from 21.0 to 23.0 in the maui-lib template.
  • Bumped Android SupportedOSPlatformVersion from 21.0 to 23.0 in the maui-multiproject Android head template.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Templates/src/templates/maui-mobile/MauiApp.1.csproj Raises Android minimum platform version to 23 to prevent Android build failures in newly created apps.
src/Templates/src/templates/maui-lib/MauiLib1.csproj Aligns library template Android minimum with dependency requirements (minSdk 23).
src/Templates/src/templates/maui-multiproject/MauiApp.1.Droid/MauiApp.1.Droid.csproj Updates Android head project minimum API to 23 to keep multiproject template building.

@jfversluis
Copy link
Copy Markdown
Member

@copilot actually lets make it 24

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 1, 2026

@copilot actually lets make it 24

Updated all three templates to 24.0 in 5fbeab11. This also aligns them with the Blazor templates which already use 24.0.

Copilot AI changed the title Bump Android SupportedOSPlatformVersion from 21 to 23 in templates Bump Android SupportedOSPlatformVersion from 21 to 24 in templates Apr 1, 2026
kubaflo
kubaflo previously approved these changes Apr 1, 2026
mattleibow
mattleibow previously approved these changes Apr 1, 2026
@jfversluis jfversluis changed the base branch from main to net11.0 April 2, 2026 09:48
@jfversluis jfversluis dismissed stale reviews from mattleibow and kubaflo April 2, 2026 09:48

The base branch was changed.

@jfversluis
Copy link
Copy Markdown
Member

@copilot rebase on the net11.0 branch

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Apr 2, 2026

@copilot rebase on the net11.0 branch

Rebased on net11.0 in a8738e43. The branch now has a single clean commit on top of net11.0, bumping Android SupportedOSPlatformVersion from 23.0 to 24.0 in all three templates.

@jfversluis
Copy link
Copy Markdown
Member

jfversluis commented Apr 2, 2026

/rebase

@jfversluis jfversluis force-pushed the copilot/fix-dotnet-maui-android-build branch from 5fbeab1 to 6f5f8ce Compare April 2, 2026 12:25
@jfversluis jfversluis merged commit ccf973e into net11.0 Apr 2, 2026
3 checks passed
@jfversluis jfversluis deleted the copilot/fix-dotnet-maui-android-build branch April 2, 2026 12:26
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.

[Android] dotnet new maui -sc fails to build: minSdkVersion 21 conflicts with included packages

5 participants