Xamarin displaying wrong images

橙三吉。 提交于 2019-12-25 08:49:32

问题


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:


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!



来源:https://stackoverflow.com/questions/39233582/xamarin-displaying-wrong-images

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!