Xamarin displaying wrong images

2019-09-11 05:16发布

I have a xamarin forms project that started behaving strangely... It started randomly replacing images with different images from the resource folder. It seems to only be happening in the Android project, iOS is behaving correctly. I've removed the recently added images and readded them, clean, rebuild, nothing sees to be helping. The images that are getting changed are not being overwritten, and the code references the correct file.

Has anyone run into a similar issue before? Thoughts on how to possibly fix this?

1条回答
Viruses.
2楼-- · 2019-09-11 05:24

It is a common behaviour, What I usually do is:

  1. Restart Xamarin Studio
  2. Go to your project Android location and Delete the bin/Obj folders.
  3. Do a full clean, rebuild of your project
  4. Delete the Android app from the device

This is the my day to day script. Hope it helps!

查看更多
登录 后发表回答