dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

Fails on Fedora 37

Open ArtyIF opened this issue 3 years ago • 1 comments

maui-check fails on Fedora 37. I have installed the SDKs using Android Studio.

Logs:

$ maui-check --verbose
      _   _   _____   _____     __  __      _      _   _   ___                                                                                                                                                       
     | \ | | | ____| |_   _|   |  \/  |    / \    | | | | |_ _|                                                                                                                                                      
     |  \| | |  _|     | |     | |\/| |   / _ \   | | | |  | |                                                                                                                                                       
  _  | |\  | | |___    | |     | |  | |  / ___ \  | |_| |  | |                                                                                                                                                       
 (_) |_| \_| |_____|   |_|     |_|  |_| /_/   \_\  \___/  |___|                                                                                                                                                      
                                                                                                                                                                                                                     
🚑 .NET MAUI Check v1.0.0.0 💉
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
This tool will attempt to evaluate your .NET MAUI development environment.
If problems are detected, this tool may offer the option to try and fix them for you, or suggest a way to fix them yourself.

Thanks for choosing .NET MAUI!
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
SetEnvironmentVariable: MAUI_CHECK_SETTINGS_FIX=False
SetEnvironmentVariable: MAUI_CHECK_SETTINGS_CI=False
SetEnvironmentVariable: MAUI_CHECK_SETTINGS_NONINTERACTIVE=False
⏳ Synchronizing configuration...Loading Manifest from: https://aka.ms/dotnet-maui-check-manifest
Required Version: 1.0.0
Current Version: 1.0.0.0
 ok
⏳ Scheduling appointments...SetEnvironmentVariable: DOTNET_ROOT=/usr/share/dotnet
SetEnvironmentVariable: DOTNET_ROOT=/usr/share/dotnet
 ok

🔎 OpenJDK 11.0 Checkup...
ValidateAndroidSdkLocation: ``, result=False
ValidateAndroidSdkLocation: ``, result=False
ValidateAndroidSdkLocation: `/home/artyif/Library/Android/sdk`, result=False
ValidateJavaSdkLocation: ``, result=False
ValidateJavaSdkLocation: ``, result=False
ValidateJavaSdkLocation: `/usr/lib/jvm/java-17-openjdk-17.0.5.0.8-1.fc37.x86_64`, result=True
ValidateAndroidNdkLocation: ``, result=False
ValidateAndroidNdkLocation: ``, result=False
System.InvalidOperationException: Could not determine Android SDK location. Please provide `androidSdkPath`.
  at Xamarin.Android.Tools.AndroidSdkInfo..ctor(Action`2 logger, String androidSdkPath, String androidNdkPath, String javaSdkPath)
  at DotNetCheck.Checkups.OpenJdkCheckup.Examine(SharedState history) in /_/MauiCheck/Checkups/OpenJdkCheckup.cs:53               
System.ArgumentNullException: Value cannot be null. (Parameter 'uriString')
  at System.Uri..ctor(String uriString)                                                                                           
  at DotNetCheck.Manifest.Urls.Get(String version, Nullable`1 platform) in /_/MauiCheck/Manifest/Urls.cs:27                       
  at DotNetCheck.Manifest.OpenJdk.get_Url() in /_/MauiCheck/Manifest/OpenJdk.cs:12                                                
  at DotNetCheck.Checkups.OpenJdkCheckup.Examine(SharedState history) in /_/MauiCheck/Checkups/OpenJdkCheckup.cs:95               
  at DotNetCheck.Cli.CheckCommand.ExecuteAsync(CommandContext context, CheckSettings settings) in /_/MauiCheck/CheckCommand.cs:169

❌ Skipped: Android SDK

❌ Skipped: Android Emulator

🔎 .NET SDK Checkup...
SetEnvironmentVariable: DOTNET_ROOT=/usr/share/dotnet
SHELL: /bin/zsh /tmp/tmp1uxbAs.tmp
6.0.403 [/usr/share/dotnet/sdk]
7.0.100 [/usr/share/dotnet/sdk]
  – 6.0.403 - /usr/share/dotnet/sdk/6.0.403
  – 7.0.100 - /usr/share/dotnet/sdk/7.0.100
SetEnvironmentVariable: DOTNET_SDK=/usr/share/dotnet/sdk/7.0.100
SetEnvironmentVariable: DOTNET_SDK_VERSION=7.0.100

🔎 .NET SDK - Workload Deduplication Checkup...
SetEnvironmentVariable: DOTNET_ROOT=/usr/share/dotnet

🔎 .NET SDK - Workloads (6.0.301) Checkup...
  ✔ android (Microsoft.NET.Sdk.Android.Manifest-6.0.300 : 32.0.440) installed.
  ✔ ios (Microsoft.NET.Sdk.iOS.Manifest-6.0.300 : 16.0.527) installed.
  ✔ maccatalyst (Microsoft.NET.Sdk.MacCatalyst.Manifest-6.0.400 : 15.4.471) installed.
  ✔ tvos (Microsoft.NET.Sdk.tvOS.Manifest-6.0.400 : 16.0.527) installed.
  ✔ macos (Microsoft.NET.Sdk.macOS.Manifest-6.0.400 : 12.3.471) installed.
  ✔ maui (Microsoft.NET.Sdk.Maui.Manifest-6.0.300 : 6.0.419) installed.
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Checkup had Error status: openjdk

openjdk: Value cannot be null. (Parameter 'uriString')
🔔 There were one or more problems detected.
Please review the errors and correct them and run maui-check again.

Press enter to exit...

Has Errors? True

Installed SDKs and tools:

SDK Platforms - Android Tiramisu (API Level 33) SDK Tools - Android SDK Build-Tools, NDK (Side by side), Android SDK Command-line Tools (latest), Android Emulator (version 31.3.13), Android SDK Platform-Tools (version 33.0.3)

ArtyIF avatar Nov 23 '22 10:11 ArtyIF

I should also note that I'm using this tool for an Avalonia UI project, not .NET MAUI which doesn't support Linux yet

ArtyIF avatar Nov 23 '22 10:11 ArtyIF