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

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

问题描述

因此,我目前正在评估Telerik的Xamarin.Forms和XamarinForms用户界面的试用版.

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.

我从这样的代码中得到了"Resource" contains no Definition for "Animation".(还有Resource.Drawable,Resource.Style,Styleable等)的5000个错误:

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

这会给任何人敲钟吗?

已经在telerik上开了票,但我想其他人可能会遇到相同的问题,可能需要修复.

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

推荐答案

如果

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

* 5000

看起来很熟悉的Im不确定是不是Telerik问题.刚刚将一个项目从表单库1.5.0.6447更新为1.5.1.6468,并得到了很多帮助.可能是我们必须等待Xamarin.Forms Fix.

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.

编辑最终找到了答案,如果您还不太满意,我猜也是一样.打开您的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天全站免登陆