Xamarin显示错误的图像 [英] Xamarin displaying wrong images

查看:78
本文介绍了Xamarin显示错误的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个xamarin表单项目,该项目开始表现异常……它开始用资源文件夹中的不同图像随机替换图像.这似乎仅在Android项目中发生,iOS行为正确.我已经删除了最近添加的图像并重新读取它们,进行了清理,重建,但似乎没有任何帮助.正在更改的图像不会被覆盖,并且代码引用了正确的文件.

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?

推荐答案

这是一种常见的行为,我通常要做的是:

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

  1. 重新启动Xamarin Studio
  2. 转到您的项目Android位置,然后删除bin/Obj文件夹.
  3. 彻底清理,重建项目
  4. 从设备上删除Android应用

这是我的日常脚本.希望对您有帮助!

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

这篇关于Xamarin显示错误的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆