I\'ve created a basic xamarin.forms
project (with PCL code sharing strategy) and I\'m getting error for the following two lines in MainActivity::OnCreate(
The problem seems in API installed. It is still a little mystery for me which APIs must be installed but deleting the build tools 24 and installing build tools 26.0.1 fixed the issue for build.
Then installed NDK which was missing and set path in Xamarin options. Now 2 options are available for computers supporting HAXM and/or Hyper-V
Run your app.
This happened to me when I included two files into "layout" folder: Tabbar.axml and Toolbar.axml. Following the Xamarin documentation at: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/platform/android/appcompat-material-design
I solved the problem just right clicking in those files, selecting Properties and changing the Build Action to AndroidResource.