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

Set $(SupportedOSPlatformVersion)=24 in Android template #9517

Open
jonpryor opened this issue Nov 15, 2024 · 0 comments
Open

Set $(SupportedOSPlatformVersion)=24 in Android template #9517

jonpryor opened this issue Nov 15, 2024 · 0 comments
Assignees
Labels
Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned.
Milestone

Comments

@jonpryor
Copy link
Member

jonpryor commented Nov 15, 2024

Context: dotnet/android-libraries#767
Context: dotnet/android-libraries#767 (comment)

For .NET 10, we should update the dotnet new android template so that $(SupportedOSPlatformVersion) is 24, bumping from the current default of 21.

The reason for this is that "desugaring" "moves" Java methods to locations that we don't expect, which can result in AbstractMethodErrors at runtime. Setting the minimum SDK version to >= 24 avoids this desugaring step, preventing the Java methods from being moved in a manner we don't expect, and thus avoiding the AbstractMethodError.

@jonpryor jonpryor added Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned. labels Nov 15, 2024
@jonpryor jonpryor added this to the .NET 10 milestone Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: App+Library Build Issues when building Library projects or Application projects. needs-triage Issues that need to be assigned.
Projects
None yet
Development

No branches or pull requests

3 participants