未发现的资源,给定的名称匹配common_signin_btn_icon_dark.xml [英] No resource found that matches the given name in common_signin_btn_icon_dark.xml

查看:281
本文介绍了未发现的资源,给定的名称匹配common_signin_btn_icon_dark.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发在VS2012使用Xamarin的Andr​​oid Android的一个MonoGame应用程序(C#)。一切都进行得很顺利,然后在一个特定的构建我突然开始得到4类似的错误没有明显的原因。这些错误都来自谷歌播放组件在Xamarin组件商店发现:

 无资源发现给定的名称(在绘制,值为@绘制/ common_signin_btn_icon_disabled_focus_dark)相匹配。
没有资源的发现,给定的名称相匹配(在绘制,值为@绘制/ common_signin_btn_icon_disabled_focus_light')。
没有资源的发现,给定的名称相匹配(在绘制,值为@绘制/ common_signin_btn_text_disabled_focus_dark')。
没有资源的发现,给定的名称相匹配(在绘制,值为@绘制/ common_signin_btn_text_disabled_focus_light')。

这些都发生在


  

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


我不知道是什么引发这些错误我一直在使用该组件一段时间后突然弹出。我也不知道如何摆脱他们。

我的项目编译采用了Android 2.3版本,API级别10分钟的目标也V2.3 API级别10,目标版本设置为V4.4 API 19。


解决方案

  

进入
  组件\\ googleplayservicesgingerbread-16.0.0.1 \\ lib目录\\ Android和
  删除(或重命名)16文件夹。在重建的内容将是
  再次下载和文件应该在那里。


  
  

我会保持这个项目更接近你的磁盘的根目录。 MAX_PATH
  使用GOOGLEPLAY组件时的问题是共同的。


  
  

我无法想象,为什么这四个文件丢失,但一旦你
  取而代之它应该工作。



  • 修正这个问题Xamarin支持电子邮件

I am developing a MonoGame app (C#) for Android using Xamarin Android in VS2012. Everything was going well then on a particular build I suddenly started getting 4 similar errors for no apparent reason. These errors all originate from the Google Play component found in the Xamarin component store:

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

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.

解决方案

Go to the Components\googleplayservicesgingerbread-16.0.0.1\lib\android and delete (or rename) the 16 folder. 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.

I can not imagine why these four files are missing, but once you replace them it should work.

  • Xamarin support email that fixed the issue

这篇关于未发现的资源,给定的名称匹配common_signin_btn_icon_dark.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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