Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. 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.

like image 540
user123 Avatar asked Jun 16 '14 18:06

user123


3 Answers

This seems to be a path issue, could you move your project as close to c:\ root to see if that helps.

You are likely to hit the maximum path length on windows.

like image 150
dalexsoto Avatar answered Sep 19 '22 14:09

dalexsoto


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
like image 43
user123 Avatar answered Sep 23 '22 14:09

user123


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).

See my answer here

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.

like image 22
silencedmessage Avatar answered Sep 21 '22 14:09

silencedmessage