Xamarin 'Resource.Layout' does not contain a definition for 'Tabbar' error

后端 未结 2 941
误落风尘
误落风尘 2021-01-12 14:27

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(

2条回答
  •  情书的邮戳
    2021-01-12 15:25

    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.

提交回复
热议问题