The 'AndroidSupportedAbis' MSBuild property is no longer supported. What should I change in my Android project?

Kim Strasser 1,036 Reputation points
2023-01-13T11:58:22.7+00:00

I get the following warning in Visual Studio for Mac 17.5 Preview (17.5 build 1095) when I debug my Android project on my tablet:

/usr/local/share/dotnet/packs/Microsoft.Android.Sdk.Darwin/32.0.476/targets/Microsoft.Android.Sdk.Tooling.targets(5,5): Warning XA0036: The 'AndroidSupportedAbis' MSBuild property is no longer supported. Edit the project file in a text editor, remove any uses of 'AndroidSupportedAbis', and use the 'RuntimeIdentifiers' MSBuild property instead. (XA0036)

Bildschirm­foto 2023-01-13 um 12.10.34

Bildschirm­foto 2023-01-13 um 12.10.49

I use armeabi-v7a, x86, arm64-v8a and x86_64 in my project's Android options for Debug and Release. I'm not sure if I need to change these settings or if I only need to change something in my csproj file.

In my Android csproj file:

 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <WarningLevel>4</WarningLevel>
    <NoStdLib>false</NoStdLib>
    <AndroidSupportedAbis>arm64-v8a;armeabi-v7a</AndroidSupportedAbis>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <NoStdLib>false</NoStdLib>
  </PropertyGroup>
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,930 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,183 questions
0 comments No comments
{count} vote

Accepted answer
  1. Anna Xiu-MSFT 28,846 Reputation points Microsoft Vendor
    2023-01-16T07:03:57.1866667+00:00

    Hi @Kim Strasser ,

    Welcome to Microsoft Q&A!

    The 'AndroidSupportedAbis' MSBuild property is no longer supported. Please remove ‘AndroidSupportedAbis’ tag and add the 'RuntimeIdentifiers' MSBuild property instead:

    <PropertyGroup>
      <RuntimeIdentifiers>arm64-v8a;armeabi-v7a</RuntimeIdentifiers>
    </PropertyGroup>
    

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Noor 0 Reputation points
    2023-04-11T11:54:07.12+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.