Ram*_*say 5 c# android monogame xamarin google-play-services
我正在使用VS2012中的Xamarin Android为Android开发MonoGame应用程序(C#).一切都进展顺利然后在特定的构建中我突然开始得到4个类似的错误,没有明显的原因.这些错误都源自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').
Run Code Online (Sandbox Code Playgroud)
这些都发生在
组件\ googleplayservicesgingerbread-16.0.0.1\LIB\Android版\ 16 \内容\谷歌播放服务\ libproject \的Google Play-services_lib \水库\绘制\ common_signin_btn_text_light.xml
在我使用这个组件一段时间之后,我不确定是什么触发了这些错误突然弹出.我也不知道如何摆脱它们.
我的项目使用Android版本2.3,API级别10进行编译.最小目标也是v2.3 API级别10,目标版本设置为v4.4 API 19.
转到 Components\googleplayservicesgingerbread-16.0.0.1\lib\android 并删除(或重命名)16 文件夹。当您重建时,将再次下载内容并且文件应该在那里。
我会让这个项目更靠近磁盘的根目录。使用 GooglePlay 组件时,MAX_PATH 问题很常见。
我无法想象为什么这四个文件丢失了,但是一旦替换它们它就应该可以工作。