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

FCMNotifications project does not compile in Visual Studio 2017 with "unable to find attribute" errors #276

Closed mrts closed 6 years ago

mrts commented 6 years ago

Issue description

FCMNotifications project does not compile in Visual Studio 2017, the errors are as follows:

In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle   FCMNotifications            
In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight  FCMNotifications            
In <declare-styleable> FontFamilyFont, unable to find attribute android:font    FCMNotifications            

Steps to reproduce the issue

  1. Download the official FCMNotifications sample from https://developer.xamarin.com/samples/monodroid/Firebase/FCMNotifications/FCMNotifications.zip
  2. Open the solution in Visual Studio 2017 version 15.7.5 (latest as of July 26, 2018)
  3. Build and run for Android_Accelerated_x86_Nougat (Android 7.1 - API 25) emulator

What's the expected result?

What's the actual result?

Notes

I did update all project NuGet packages to latest versions and applied all latest Android SDK updates, the problem remains.

topgenorth commented 6 years ago

The zip you downloaded is very out of date. Content on the old developer.xamarin.com site has been deprecated. The https://github.com/xamarin/monodroid-samples/tree/master/Firebase/FCMNotifications project in this repository is the most recent version of this code.