dotnet / android-samples

A collection of .NET for Android sample projects
https://dotnet.microsoft.com/apps/mobile
MIT License
2.21k stars 4.05k forks source link

[CalendarDemo] fix for aapt2 (which is now default) #306

Closed jonathanpeppers closed 5 years ago

jonathanpeppers commented 5 years ago

When building this project with <AndroidUseAapt>True</AndroidUseAapt2> you will get:

error APT2260: obj\Debug\44\res\layout\calendarlist.xml:1: error: resource android:id/android:list not found. "android:list not found."
error APT2260: obj\Debug\44\res\layout\eventlist.xml:1: error: resource android:id/android:list not found. "android:list not found."

I think the name android:id/android:list is probably just a typo, so removing android: fixes the issue.