Visual Studio 2015 - Xamarin - Android - Getting “resource.id does not contain a definition for xxx” when I try to do anything in the .cs file

前端 未结 17 1544
后悔当初
后悔当初 2020-12-30 07:21

Adding Additional Activity .cs and Layout axml Using Visual Studio 2015.

I\'m very new to Xamarin and Android

17条回答
  •  攒了一身酷
    2020-12-30 07:52

    For anyone else looking for an answer despite running clean/build/rebuild which didn't work for me:

    I had freshly installed a number of tools for xamarin development in VS. Though a build/rebuild may have actually worked, in my case I believe what also fixed it was closing and re-opening VS. I'm pretty sure I had a few issues, primarily stemming from newly installed tools (android SDKs in my case) requiring VS to be restarted. If you're working on a project already having installed the tools you need, try as others have said - build/rebuild.

提交回复
热议问题