-
Notifications
You must be signed in to change notification settings - Fork 839
Description
Current behavior
When creating a brand new application via the Uno Solution templates blank image assets are created. The filenames of these images are no longer compatible with Xamarin.Android.
Expected behavior
- File -> New Uno Solution
- Compile Android Application
- Compilation success
How to reproduce it (as minimally and precisely as possible)
- File -> New Uno Solution
- Compile Android Application
- Compilation errors
Environment
Nuget Package: master
Package Version(s):
Affected platform(s):
- iOS
- Android
- WebAssembly
- Windows
- Build tasks
Visual Studio
- 2017 (version: )
- 2019 (version: )
- for Mac (version: )
Relevant plugins
- Resharper (version: )
Anything else we need to know?
Hi Geoffrey,
This is exactly the issue [1] I linked to in my previous comment. The Uno platform (for some reason) is including those content files into the AndroidResource item group. This is done by this code in the Uno platform itself.
<ResourcesGenerationTask_v0 Resources="@(PRIResource)" The good news is that those items DO have a
LogicalNamemetadata item which does have a valid filename. So once the fix above is released the app will compile as normal. As I stated in my previous comment this will only effect projects using aapt2. So to work around this issue you can put the following in your csproj
<AndroidUseAapt2>false</AndroidUseAapt2>or use
/p:AndroidUseAapt2=falseon the command line.
[1] dotnet/android@e0145d1#diff-f8b51db87afcb0cc430594eb134bf41a