坚持一个奇怪的问题Xamarin

时间:2015-02-07 10:30:01

标签: android xamarin

我遇到了一个问题而且非常讨厌。我几天前也遇到过这个问题,并且通过将'最小'和'目标'安卓版本更改为'21'来确定时间。但是,这次不行。

错误:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: Error: Tool exited with code: 1. Output: /Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-hdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-mdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-xhdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-xhdpi/abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-hdpi/abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
/Users/pranjalvatsa/.local/share/Xamarin/Android.Support.v7.AppCompat/21.0.3/embedded/./res/drawable-hdpi/abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
obj/Debug/res/layout/menu.xml:8: error: Error parsing XML: not well-formed (invalid token)

同时附加Build Output文件。

请尽快通知。此外,请注意在我添加xml文件(Menu.xml)后,此错误开始发生。我现在已删除该文件,但错误仍然存​​在。

2 个答案:

答案 0 :(得分:0)

这些文件中有非标准信息。它只是一个警告,不应该影响应用程序。如果你像我一样想要摆脱所有警告,那就有办法解决它。

查看this stack overflow answer

答案 1 :(得分:0)

对我而言,这是由" - "在资产名称资源上。

我代替account-icon.png将其更改为account_icon.png

希望这有帮助。