Share via

Is it possible to Target Android 35 with .net 8?

Sreenivasan, Sreejith 780 Reputation points
2026-04-13T05:28:28.4333333+00:00

My MAUI project's targets target .net runtime is .net 8.0. Target android framework is 34, I want 35 as the target version. Is it possible to target 35 with .net 8.0.

User's image

Only API level 34 is listing on the target android framework dropdown. Is there any workaround to set 35 with .net 8.0 runtime?
If the solution is only to upgrade to .Net 9 from .Net 8, tell the steps for that.

Developer technologies | .NET | .NET MAUI
0 comments No comments

Answer accepted by question author
  1. Nancy Vo (WICLOUD CORPORATION) 2,655 Reputation points Microsoft External Staff Moderator
    2026-04-13T07:16:50.57+00:00

    Hello @Sreenivasan, Sreejith ,

    Thanks for your question.

    It is possible to target Android API level 35 while staying on .NET 8. Below are the workarounds I recommend:

    Workaround 1 - You can target Android 35 while staying on .NET 8 using a manual manifest override.

    Note:

    This workaround allows you to TARGET Android 35 (satisfy Google Play requirements) but you cannot use new Android 35 APIs from C# code. For full Android 35 API support, use Workaround 2 (upgrade to .NET 10).

    1.Keep your project settings as is:

    • Target Framework: net8.0-android
    • Target Android Framework: API 34 (in dropdown)
    1. Add or modify AndroidManifest.xml in your project:
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android">
        <uses-sdk android:targetSdkVersion="35" />
        <application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
    </manifest>
    
    1. Build your app: you may see this warning and it is safe to ignore.
    warning XA1008: The TargetFrameworkVersion (Android API level 34) is lower than the targetSdkVersion (35).
    

    Workaround 2: This is a long-term recommendation, as Maui on .net 8 went out of support on May 14, 2025. In the future, you may face many issues because this version is no longer supported. Additionally, .NET 9 will go out of support on May 12, 2026. Upgrading to .NET 10 (LTS) ensures longer support until May 2027.

    To move a .NET MAUI app from .NET 8 TO .NET 10, I would recommend these steps:

    1. Make sure Visual Studio has .NET 10 and the MAUI workload installed.
    2. Update each project file from net8.0-* to net10.0-*.
    3. Update any MAUI-related NuGet packages, if you reference them explicitly.
    4. Delete the bin and obj folders. Restore and rebuild the solution.
    5. Fix any warnings or breaking changes that appear after the rebuild.

    The main project-file change is usually just the target frameworks. For example:

    <TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
    <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
    

    If your app uses platform-specific features, there are a few things worth checking after the upgrade:

    1. Deprecated MAUI APIs such as older animation methods and older UI types.
    2. Android settings, because .NET 10 moves forward with newer Android tooling.
    3. iOS/Mac Catalyst build requirements, especially if you build with a Mac.
    4. Trimming or AOT settings, if your project already uses them.

    If the app builds cleanly after changing the target frameworks, the move can be fairly small. If it does not, the build errors usually point to the exact API changes that need attention.

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-13T05:28:43.4+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Yes, it is possible to target Android 35 APIs while still using the .NET 8 runtime, but it is done in the project file, not via the Visual Studio dropdown.

    Key points from the platform docs:

    • For .NET 8, net8.0-android is shorthand for net8.0-android34.0 (Android API 34) by default.
    • The OS-specific TFM can include a higher “platform version” to opt into newer Android APIs when bindings are available, for example net8.0-android35.0.
    • The version in the TFM controls which Android API surface you compile against; it does not change the runtime OS requirement.

    To target Android 35 APIs on .NET 8:

    1. Edit the .csproj file directly.
    2. Change the TargetFramework from the default to include the platform version:
         <PropertyGroup>
           <TargetFramework>net8.0-android35.0</TargetFramework>
         </PropertyGroup>
      
    3. Ensure the Android 35 SDK / bindings are available in the installed .NET/Android tooling. Visual Studio’s UI may still show Android 14 (API 34), but the build will use the TFM you specify in the project file.

    If bindings for Android 35 are not yet shipped in the .NET 8 Android tooling on the machine, the project will fail to restore/build with that TFM; in that case, keep net8.0-android (34.0) until an SDK update adds 35.0 bindings.

    Note that in .NET 9, Android 15 (API 35) is the default, so net9.0-android already maps to API 35.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.