Delen via


.NET for Android error APT2265

Probleem

Het hulpprogramma aapt2 kan een van de bestanden die het is doorgegeven, niet oplossen. This is generally caused by non-ASCII characters in the project name or the path to the project.

Solution

The best way to avoid this is to ensure that your project does not contain non-ASCII characters. Als u bijvoorbeeld al uw projecten maakt in mappen zoals

C:\Users\shëlly\Visual Studio 2022\Android\MyProjects\Com.SomeReallyLongCompanyName.MyBrillantApplication\MyBrilliantApplicaiton.Android\

you may well encounter problems with not only aapt2 but also Ahead of Time compilation. Keeping your project names and folder structures short, concise and ASCII will help work around these issues. In plaats van het bovenstaande kunt u bijvoorbeeld

C:\Work\Android\MyBrilliantApp

Which is much shorter, contains no non-ASCII characters and much less likely to encounter issues.