[英]No resource found that matches the given name in common_signin_btn_icon_dark.xml
I am developing a MonoGame app (C#) for Android using Xamarin Android in VS2012. 我正在使用VS2012中的Xamarin Android为Android开发MonoGame应用程序(C#)。 Everything was going well then on a particular build I suddenly started getting 4 similar errors for no apparent reason.
一切都进展顺利然后在特定的构建中我突然开始得到4个类似的错误,没有明显的原因。 These errors all originate from the Google Play component found in the Xamarin component store:
这些错误都源自Xamarin组件商店中的Google Play组件 :
No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_focus_dark').
No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_disabled_focus_light').
No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_focus_dark').
No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_text_disabled_focus_light').
These all occur within 这些都发生在
Components\\googleplayservicesgingerbread-16.0.0.1\\lib\\android\\16\\content\\google-play-services\\libproject\\google-play-services_lib\\res\\drawable\\common_signin_btn_text_light.xml
组件\\ googleplayservicesgingerbread-16.0.0.1 \\ LIB \\ Android版\\ 16 \\内容\\谷歌播放服务\\ libproject \\的Google Play-services_lib \\水库\\绘制\\ common_signin_btn_text_light.xml
I am not sure what triggered these errors to suddenly popup after I have been using this component for a while. 在我使用这个组件一段时间后,我不确定是什么触发了这些错误突然弹出。 I also don't know how to get rid of them.
我也不知道如何摆脱它们。
My project compiles using Android version 2.3, API Level 10. The min target is also v2.3 API level 10, and the target version is set to v4.4 API 19. 我的项目使用Android版本2.3,API级别10进行编译。最小目标也是v2.3 API级别10,目标版本设置为v4.4 API 19。
This seems to be a path issue, could you move your project as close to c:\\ root to see if that helps. 这似乎是一个路径问题,你可以将你的项目移动到接近c:\\ root,看看是否有帮助。
You are likely to hit the maximum path length on windows. 您可能会在Windows上达到最大路径长度。
Go to the Components\\googleplayservicesgingerbread-16.0.0.1\\lib\\android and delete (or rename) the 16 folder.
转到Components \\ googleplayservicesgingerbread-16.0.0.1 \\ lib \\ android并删除(或重命名)16文件夹。 When you rebuild the content will be downloaded again and the files should be there.
重建时,将再次下载内容,文件应该在那里。
I would keep this project closer to the root of your disk.
我会让这个项目更接近磁盘的根目录。 MAX_PATH issues are common when using the GooglePlay component.
使用GooglePlay组件时,MAX_PATH问题很常见。
I can not imagine why these four files are missing, but once you replace them it should work.
我无法想象为什么这四个文件丢失了,但是一旦你更换它们就应该有效。
This tends to happen when the user hits the maximum path error. 当用户遇到最大路径错误时,往往会发生这种情况。
After ensuring the maximum file path will not be exceeded, uninstall and re-install the package (or component). 确保不会超出最大文件路径后,卸载并重新安装软件包(或组件)。
Note: - I would have added this as a comment to your answer which guided me to my solution, but currently lack the reputation as I'm typically a troller rather than poster. 注意: - 我会将此作为评论添加到您的答案中,这引导我找到我的解决方案,但目前缺乏声誉,因为我通常是一个控制者而不是海报。
您可能希望使用Android 4.3+编译应用程序,并将最低目标版本设置为v2.3 API级别10
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.