dotnet / dotnet/website-feedback

Tutorial seems to be missing a few things for Android

Open
#1,195 0 comments 0 reactions 0 assignees View on GitHub
area-tutorials needs-triage
Dominant language
No language data
Stars
7
Forks
57
PR merge metrics
No merged PRs in 30d

Description

### URL

https://dotnet.microsoft.com/en-us/learn/maui/first-app-tutorial/intro

It's missing a few things:

1. VS might need to be run as an admin (some online say it's needed for the license acceptance dialog??)
2. the location of the jdk and android sdk for some reason needs to be a shorter path without spaces like "G:\Android\android-sdk"... instead of 'program files\microsoft...'
3. you might need to navigate to the tool to accept the license using an admin command prompt, example `cd "g:\Program Files (x86)\Microsoft Visual Studio\Shared\Android\android-sdk\cmdline-tools\latest\bin"` and `sdkmanager --licenses`

### Operating system

windows 11

### More information about your system

Windows 11 Pro Version 10.0.26200 Build 26200
System Type x64-based PC
Processor AMD Ryzen 7 5700G with Radeon Graphics, 3800 Mhz, 8 Core(s), 16 Logical Processor(s)

### Description

Unable to use the android emulator

Errors
```
An error occurred trying to accept Android licenses. Exit code: 255. Android SDK: 'g:\Program Files (x86)\Microsoft Visual Studio\Shared\Android\android-sdk'. Java SDK: 'g:\Program Files (x86)\Microsoft Visual Studio\Shared\Android\openjdk\jdk-21.0.8'. Command-line tools: 'g:\Program Files (x86)\Microsoft Visual Studio\Shared\Android\android-sdk\cmdline-tools\latest'. Errors: \Microsoft was unexpected at this time.
```
```
Error summary: avdmanager has returned non-zero exit code: 255. Please check logs for more information.
```

### dotnet --info

C:\Windows\System32>dotnet --info
.NET SDK:
Version: 10.0.103
Commit: c2435c3e0f
Workload version: 10.0.100-manifests.c992be6d
MSBuild version: 18.0.11+c2435c3e0

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.103\

.NET workloads installed:
[maui-windows]
Installation Source: VS 18.3.11512.155
Manifest Version: 10.0.20/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maui\10.0.20\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 18.3.11512.155
Manifest Version: 26.2.10191/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.2.10191\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 18.3.11512.155
Manifest Version: 26.2.10191/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.ios\26.2.10191\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 18.3.11512.155
Manifest Version: 36.1.2/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.2\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.3
Architecture: x64
Commit: c2435c3e0f

.NET SDKs installed:
10.0.103 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.24 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.13 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.24 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.24 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 9.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.