Invalid resource directory name "font" Xamarin Android
For me the solution was to remove all the old Android SDK Build Tools from the SDK Manager. Now I only have for api level 26 and 27 installed and it works.
First always check out the latest xamarin documentation about new features. https://developer.xamarin.com/guides/android/platform_features/introduction-to-oreo/
I quickly created a new xamarin android project and added two textviews with diffrent fonts:
My solution looks as the following:
I usually try to avoid capital letters in resource names as the android studio complains about it.
Main Layout:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:text="Pacifico example text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/pacifico" />
<TextView
android:text="Roboto light example text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="@font/roboto_light" />
</LinearLayout>
I think that you do not use the latest platform to build. Check that you use the latest platform (Oreo) to build the application.