Skip to content

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

@Eilon

Description

@Eilon

Originally opened by @janseris in dotnet/maui#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

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

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions