绘制资源文件没有找到谷歌播放组件 [英] Drawable resource files not found for Google Play component

查看:233
本文介绍了绘制资源文件没有找到谷歌播放组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有previously一直使用Xamarin Studio来code谷歌地图应用程序,并已经将文件复制到一个新的文件夹在Visual Studio中使用。

I have previously been using Xamarin Studio to code a Google Maps application and have copied the files into a new folder to use in Visual Studio.

我收到的所有相对于谷歌的许多资源建设的错误在Visual Studio中的Andr​​oid应用程序时播放组件。

I am getting many resource errors all in relation to the Google Play component when building the Android application in Visual Studio.

下面是错误之一:

No resource found that matches the given name (at 'drawable' with value '@drawable/common_signin_btn_icon_pressed_dark')

下面是XML文件:

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:state_pressed="true"
        android:drawable="@drawable/common_signin_btn_icon_pressed_dark" />
    <item
        android:state_enabled="false"
        android:state_focused="true"
        android:drawable="@drawable/common_signin_btn_icon_disabled_focus_dark" />
    <item
        android:state_focused="true"
        android:drawable="@drawable/common_signin_btn_icon_focus_dark" />
    <item
        android:state_enabled="false"
        android:drawable="@drawable/common_signin_btn_icon_disabled_dark" />
    <item
        android:drawable="@drawable/common_signin_btn_icon_normal_dark" />
</selector>

重要的是如何在code这些资源文件?可我只是删除XML文件中的参考?

How important are these resource files in the code? Can I just remove the references in the XML file?

在此先感谢

推荐答案

我可能会迟到到这一点,并真诚地希望您在本想通了现在,但对于像我这样谁都有遇到此问题,发现在谷歌后可能会发现它很有用。

I may be late to this and sincerely hope you have this figured out by now, but for people like myself who have experience this issue and found the post on google may find it useful.

答案很简单:卸载包(或组件),并确保你不会碰到的最大大小的文件路径错误后重新安装。这应该可以解决缺少的资源。

The simple answer: Uninstall the package (or component) and re-install after ensuring you won't hit the maximum size for a file path error. This should fix the missing resources.

我不得不使用Xamarin Studio中的一个类似的经历。最初的文件路径远太长的Windows(和presumably其他操作系统)和由包不会取消压缩下载的zip文件。 IDE将促使我手动下载的zip,它未压缩到适当的位置。这根本不够,因为我遇到了同样的错误。我改名了几个文件夹,以便参与了包荒谬子目录命名,并在重新安装复制,我收到了同样的错误。

I had a similar experience using Xamarin Studio. Originally the file paths were far too long for Windows (and presumably other operating systems) and the zip that is downloaded by the package would not un-zip. The IDE prompted me to manually download the zip, and un-zip it to the appropriate location. This was simply not enough, as I encountered the same errors. I renamed a couple of folders to allow for the ridiculous sub-directory naming involved with the package, and after re-installation copying I received the same error.

删除软件包,并重新下载/安装包后,项目建成并没有丢失的绘制资源。

After removing the package and re-downloading/installing the package, the project built and did not have the missing drawable resources.

相关来源:
<一href=\"http://stackoverflow.com/questions/24249787/no-resource-found-that-matches-the-given-name-in-common-signin-btn-icon-dark-xml\">No资源发现common_signin_btn_icon_dark.xml 给定的名称相匹配
<一href=\"http://forums.xamarin.com/discussion/comment/65525/#Comment_65525\">http://forums.xamarin.com/discussion/comment/65525/#Comment_65525

Related Sources: No resource found that matches the given name in common_signin_btn_icon_dark.xml http://forums.xamarin.com/discussion/comment/65525/#Comment_65525

这篇关于绘制资源文件没有找到谷歌播放组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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