dotnet / dotnet/android

Android - APT2000 build error when project path contains non-ASCII symbols

Open
#6,925 38 comments 2 reactions 2 assignees Claimed by @dellis1972 View on GitHub
Area: App+Library Build
Dominant language
C#
Stars
2.1k
Forks
579
Avg merge
1d 19h
Merged PRs (30d)
252

Description

Originally opened by @janseris in https://github.com/dotnet/maui/issues/5957

---

### Description

Putting project in a folder/directory containing some non-ASCII chars, like Czech alphabet (tested with **_á_**) breaks Android build.
This does not affect any other C# projects. I have beeing using WinForms, Blazor, WPF on this path and all has been working fine for years.
Even VS Solution, folder names and class and property names can contain these special symbols fine.
It seems like the problem is in Android tools.
I have experienced these issues with C++ compilers and other UNIX tools which live in the ASCII-only world.

```
Severity Code Description Project File Line Suppression State
Error APT2000 System cannot find file. (2). Tempus.Mobile.GUI C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\31.0.200-preview.14.106\tools\Xamarin.Android.Aapt2.targets 217
```

![image](https://user-images.githubusercontent.com/64279914/162613888-72e047a4-0d0e-423d-a522-ee8347a6c173.png)

### Steps to Reproduce

Put project in any path containing "á" symbol.
I created a minimal repro with `C:/á/ProjectFolder`

### Version with bug

Preview 14 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Android

### Affected platform versions

Android

### Did you find any workaround?

_No response_

### Relevant log output

_No response_

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.