Can't deploy Visual Studio Net 9.0 project with Android

Huseyin Unsal 10 Reputation points
2024-11-21T08:43:20.9+00:00

While deploying a Visual Studio Net 9.0 project, it occasionally gives a warning: This project is not suitable for Android, check for errors. After deploying the project with Windows, it can be deployed on Android. This situation is repeated from time to time. When I examine it, there is no error in the project error box.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,338 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,805 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Евгений Данилов 0 Reputation points
    2024-12-14T22:47:26.42+00:00

    If the solution runs on other platform - Check your code for features that are not supported by the Android platform. You may need to find an alternative code or use a conditional compilation like this: https://zcusa.951200.xyz/en-us/dotnet/maui/platform-integration/invoke-platform-code?view=net-maui-8.0


  2. Huseyin Unsal 10 Reputation points
    2024-12-16T07:10:55.48+00:00

    This explanation not for my problem. My problem is net 8.0 / net 9.0 and windos 10/windows 11 platforms. Not other problem, just version differences make the problem. This problem must be solved by Microsoft

    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.