App not installed as app isnt compatible with you phone

KasperSommer 30 Reputation points
2025-02-26T16:46:53.51+00:00

I have just created a brand new MAUI template from Visual Studio Code, but I cannot build and install the APK on my Android 13 (33) device.

proj:

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>

I have tried to add exported=true as suggested here, no change: https://learn.microsoft.com/en-us/answers/questions/2136171/android-apk-not-installed

Why is this happening and what can I do to fix the issue?

Thanks.

Developer technologies | .NET | .NET MAUI
{count} votes

Accepted answer
  1. Harry Vo (WICLOUD CORPORATION) 1,315 Reputation points Microsoft External Staff
    2025-08-27T07:15:54.3466667+00:00

    Hi @KasperSommer . Sorry to bother you again! I'm posting this answer to help others who might encounter the same issue.

    You're getting the issue "App not installed as app isn't compatible with your phone", it means that your device's system architecture does not compatible with the application.

    Based on this documentation:

    64-bit architectures by default .NET for Android in .NET 9 no longer builds the following runtime identifiers (RIDs) by default:

    • android-arm
    • android-x86

    So, with .NET 9's shift to 64-bit by default, older or 32-bit can no longer install the APK successfully without any modification. If you need to build for these architectures, you can add them to your project file (.csproj):

    <RuntimeIdentifiers>android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
    

    Or in a multi-targeted project:

    <RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
    

    I'm glad that you finally found the solution for this issue. If you think my answer explains correctly, feel free to interact with the system accordingly!

    Thank you!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. KasperSommer 30 Reputation points
    2025-02-26T21:47:43.9966667+00:00
    0 comments No comments

Your answer

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