"Resource" does not contain a definition for "Animation"

So, I'm now in the process of evaluating the Xamarin.Forms and UI tests for XamarinForms from telerik.

Unfortunately, when I link the libraries to the telerik dll, I get a damaged Resource.Designer.cs file.

I get 5000 errors "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; .... 

Is this calling someone?

A telerik ticket has already been launched, but I think that someone else might run into the same problem and may need a fix.

+6
source share
3 answers

if

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

* 5000

It looks familiar. I am not sure if this is a Telerik problem. I just updated the project from Library 1.5.0.6447 forms to 1.5.1.6468 and received them. Maybe we will have to wait on Xamarin.Forms Fix.

EDIT Finally found the answer, and if you don’t have it, I assume it is the same. Open the Android SDK manager and install Android 6.0 (API 23). If this does not work, just install everything. The Android dependency stack looks a little dirty. Either Telerik or Xamarin.Forms probably depends on a specific Android SDK that you did not install.

Update on this subject: time is moving, and this error seems to be the area for many problems. The same problem has occurred recently and uninstalling all Xamarin Nuget packages and re-adding them to the project fixed it. I thought it was worth adding another possible solution. Other things that have fixed this for me in the past. - Reboot - Restart the IDE - Clean and recompile the application. I have not mentioned this before, as I assume you have already tried here: D

+11
source

"Resource.Animation" does not contain a definition for projectName

'Resource.String' does not contain a definition for projectName

'Resource.*' If you mixed up the Resource.Designer.cs file by simply deleting the Resource.Designer.cs file and running a clean and rebuilt command, doing the trick.

Steps:

  • Delete resource .Designer.cs
  • Clear project
  • Restore project
+4
source

If you have project a link to project b and using the Xamarin package (in my case appcompat) in project b , make sure project a also references this package.

0
source

All Articles