“资源"不包含“动画"的定义; [英] "Resource" contains no Definition for "Animation"

查看:21
本文介绍了“资源"不包含“动画"的定义;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我目前正在评估 Xamarin.Forms 的试验以及来自 Telerik 的 XamarinForms 的 UI.

So i'm currently in the process of evaluating trials of Xamarin.Forms and UI for XamarinForms from telerik.

不幸的是,一旦我将库链接到 Telerik dll,我就会得到一个混乱的 Resource.Designer.cs 文件.

Unfortunately once i link the libraries to the telerik dll's i'm getting a messed up Resource.Designer.cs file.

我收到 5000 个 Resource" 不包含动画"定义的错误.(还有 Resource.Drawable、Resource.Style、Styleable 等)来自如下代码:

I'm getting 5000 errors of "Resource" contains no Definition for "Animation". (also Resource.Drawable, Resource.Style, Styleable,...) from code like this:

    public static void UpdateIdValues()
    {
        global::Telerik.XamarinForms.ChartRenderer.Android.Resource.Animation.abc_fade_in = global::MyNamespace.XamarinForms.Droid.Resource.Animation.abc_f
        global::Telerik.XamarinForms.ChartRenderer.Android.Resource.Animation.abc_fade_out = global::MyNamespace.XamarinForms.Droid.Resource.Animation.abc_fade_out;
        ....

这会给任何人敲响警钟吗?

Does that ring a bell to anyone?

已经在 Telerik 上开始了一张票,但我想其他人可能会遇到同样的问题并且可能需要修复.

Already started a ticket on telerik but i guess someone else may run into the same issue and might need a fix.

推荐答案

if

ResourcesResource.designer.cs(29,110): error CS0117: '.........' does not contain a definition
 for 'Animation' [C:......Droid.csproj]

*5000

看起来很熟悉我不确定是 Telerik 的问题.刚刚将一个项目从表单库 1.5.0.6447 更新到 1.5.1.6468 并获得了其中的一个.可能我们将不得不等待 Xamarin.Forms 修复.

Looks familiar Im not sure its a Telerik issue. Just updated a project from forms Library 1.5.0.6447 to 1.5.1.6468 and got a stck of them. Could be we'll have to wait on a Xamarin.Forms Fix.

EDIT 终于找到了答案,如果你还没有找到,我猜也是一样的.打开您的 Android SDK 管理器并安装 Android 6.0 (API 23).如果这不起作用,请安装所有内容.Android 的依赖堆栈似乎有点混乱.Telerik 或 Xamarin.Forms 可能依赖于您尚未安装的特定 Android SDK.

EDIT Finally found the answer and if you haven't as well I'm guessing its the same. Open up your Android SDK manager and Install the Android 6.0 (API 23). If that doesn't work Heck just install everything. The dependency stack with Android appears to be a little messy. Either Telerik or Xamarin.Forms likely has a dependency on a specific Android SDK that you don't have installed.

关于这个问题的更新:时间在流逝,这个错误似乎是各种问题的统称.最近遇到了同样的问题,删除所有 Xamarin Nuget 包并将它们重新添加到项目中修复了它.认为作为另一种可能的解决方案可能值得添加.过去为我解决了这个问题的其他事情.- 重新启动- 重新启动IDE- 清理和重新编译应用程序.我之前没有提到那些,因为我假设如果你在这里你已经尝试过了 :D

Update on this one: Time moves on and this error seems to be a catchall for a variety of issues. Had the same problem recently and Removing all of the Xamarin Nuget packages and re adding them to the project fixed it. Thought it might be worth adding as another possible solution. Other things that have fixed this for me in the past. - Rebooting - Restarting the IDE - Cleaning and Recompiling the App. I didn't mention those earlier as I assume if your here you've already tried that :D

这篇关于“资源"不包含“动画"的定义;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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