MAUI Overview

Khanh Nguyen • 15 October 2023 • 

MAUI

Some additional SDK#

Remember to install both Android SDK and Java SDK to your machine. Both of them can be install on custom location and set corresponding path within csproj file.

Android SDK should be install via IDE, while Java SDK can be download seperately. Android API version must be compatible with JDK version.

<PropertyGroup>
  <OutputType>Exe</OutputType>
  <UseMaui>true</UseMaui>
  ...
  <!-- Set the AndroidSdkDirectory property -->
  <AndroidSdkDirectory>Path to android SDK</AndroidSdkDirectory>
  <JavaSdkDirectory>Path to JDK</JavaSdkDirectory>
  ...
</PropertyGroup>

If encounter error Error APT2260 : resource mipmap/appicon (aka com.companyname.colormaker:mipmap/appicon) not found, Check MauiIcon from csproj file, then add a dummy svg file into the path.

Noticable library#


Khanh Nguyen

Web developer & .Net lover