"No resource identifier found for attribute 'layout_behavior'" error after upgrade.

I upgraded a working solution to Xamarin v3.6.0.220655 and also updated the Android target framework to 9.0

Now when I try a clean build I get 4 errors like:

...\obj\Debug\90\lp\45\jl\res\layout\design_bottom_sheet_dialog.xml(16):
error APT0000: No resource identifier found for attribute 'layout_behavior' in package 'com....'

All 4 variants of the error refer to the same attribute in different files that are no directly part of the project.

Tried various forms of deleting everything under obj, restarting Visual Studio, etc, etc,

Any suggestions?

Thanks.

Answers

  • yelinzhyelinzh Member, Xamarin Team Xamurai

    Clear all the contents of Resource.designer.cs and rebuild the project.

  • rw5561rw5561 Member

    Thanks -- tried that and Visual Studio doesn't regenerate the file.

    Deleting the file, clearing all obj/bin folders and generally removing anything I can find failed to regenerate the file too.

    I tried pouring through the verbose msbuild output but there was nothing that stood out as indicating any kind of error.

    What is odd is that even with Resource.designer.cs deleted the only error was the same message about the layout_behavior attribute.

    I reverted to the previous version and everything is still good there.

  • yelinzhyelinzh Member, Xamarin Team Xamurai

    Sorry for my mistake. Clear all the contents of Resource.designer.cs and rebuild the App.

Sign In or Register to comment.