Xamarin.forms: Xamarin Forms Android Resource Designer Errors

Created on 26 Jan 2019  ·  10Comments  ·  Source: xamarin/Xamarin.Forms

Xamarin Forms 4.0 preview 3
Visual Studio 2017 15.9.6

I'm seeing the following "errors". However I'm still able to compile/run the application.

I've tried deleting/rebuilding bin/obj but they keep coming back. How do I eliminate?

image

buildchain Android needs-info ❓ needs-repro ❔ bug

Most helpful comment

  • delete obj/bin
  • convert to package reference
  • check csproj files of all projects for conflicting versions
  • delete the contents of Resource.designer.cs and rebuild android project

All 10 comments

Did this only start after updating to pre3? If you downgrade again, does it stop? Thanks!

Hey this was happening with pre1 as well. I was hoping upgrading to pre3 would fix but same result. It's a pretty stock Forms Android project and I'm the latest v28.0.0.1 nugets too.

Any suggestions?

Can you attach your project so we can investigate further? Thanks!

Sorry it's a closed source Forms solution. Anymore debugging or info I can give without the Source? would just the Xamarin.Android project itself work (has no real business logic)?

@aherrick Hmm, maybe. Please share what you can, and let's see if it helps. In the meantime, has this issue persisted with pre5? Thanks!

@aherrick Since we haven't heard from you in more than 30 days, we hope this issue is no longer affecting you. If it is, please reopen this issue and provide the requested information so that we can look into it further. Thank you!

Hi @samhouts i'm getting the same error here.

  • delete obj/bin
  • convert to package reference
  • check csproj files of all projects for conflicting versions
  • delete the contents of Resource.designer.cs and rebuild android project

@PureWeen Thanks, it worked for me.

I have the same problem. Deleting obj/bin, converting to package reference, deleting contents of Resource.designer.cs all made no difference.

See https://forums.xamarin.com/discussion/159080/how-to-resolve-errors-in-resource-designer-cs-when-building-for-android

Was this page helpful?
0 / 5 - 0 ratings