© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
31 replies
Thalnos

✅ Maui HelloWorld App

I have installed maui workload with
dotnet workload install maui
dotnet workload install maui
, then created a new solution in Rider for maui, and tried to run the windows launch profile. I got the error from the first screenshot. So I followed the link (screenshot 1) and copied and pasted
dotnet build MauiTest.csproj -t:InstallAndroidDependencies -f net8.0-android -p:AndroidSdkDirectory=c:\work\android-sdk -p:JavaSdkDirectory=c:\work\jdk -p:AcceptAndroidSdkLicenses=True
dotnet build MauiTest.csproj -t:InstallAndroidDependencies -f net8.0-android -p:AndroidSdkDirectory=c:\work\android-sdk -p:JavaSdkDirectory=c:\work\jdk -p:AcceptAndroidSdkLicenses=True
into a terminal to install the necessary dependencies for android.

It gave me a warning that
"platform-tools"
"platform-tools"
should have gotten installed but wasn't (screenshot 2), and suggested me a command to fix it. Upon executing that command it complained that
JAVA_HOME
JAVA_HOME
env variable isn't set, which I have then set in both user and system env variables (screenshot 3), but after that it still says
JAVA_HOME
JAVA_HOME
is not set (screenshot 2)
image.png
image.png
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Maui in app update
C#CC# / help
3y ago
.NET MAUI Android Dashcam App
C#CC# / help
12mo ago
❔ Can't deploy app MAUI
C#CC# / help
4y ago
Unable to publish MAUI App
C#CC# / help
4y ago