Unity 2019. Package manager unable to export correctly animation2D

Hi all,
I updated my unity to the last version 2019.1.0f2, but I got this error :

Library\PackageCache\com.unity.2d.animation@2.1.0-preview.2\Runtime\PrepareSkinningSystem.cs(19,32): error CS0029: Cannot implicitly convert type 'Unity.Entities.ComponentGroup' to 'Unity.Entities.EntityQuery'

When I remove Animation 2D I don’t have errors.
I could I correct it please ?

Hi @kosted ,

I’m not sure what’s causing that error, I tried adding com.unity.2d.animation@2.1.0-preview.2 to an empty project in 2019.1.0f2 and I didn’t get any errors. You might have to clear your cached version of that package i.e. delete the folder com.unity.2d.animation@2.1.0-preview.2 under <my-project>\Library\PackageCache\ and try adding the package again.

Hi @samuelb_unity ,
I created a new project. I did not have these errors, but when I import my project, my animation sprite lost all bones.
Do you know how to correct it ?

Are you still seeing errors from the 2d.animation package when you open your original project? If not, this doesn’t seem like a Package Manager issue, you might be better off asking in the 2D forum Unity Engine - Unity Discussions

Yes, it is now another 2d.animation issue :

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.Experimental.U2D.Animation.SpriteSkin.Awake () (at Library/PackageCache/com.unity.2d.animation@2.1.0-preview.2/Runtime/SpriteSkin.cs:74)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

I re install Unity 2019, install once again 2D animation, IK and Entities, but still got

Library\PackageCache\com.unity.2d.animation@2.1.0-preview.2\Runtime\DeformSpriteSystem.cs(19,9): error CS0619: 'ComponentGroup' is obsolete: 'ComponentGroup has been renamed to EntityQuery. (UnityUpgradable) -> EntityQuery'

I’m tired of doing the same process during one week without success. I deleted the cache folder also…Nothing

I let unity opened, then I delete the folder com.unity.2d.animation, and i get rid of the errors.

When I closed Unity and Opend it again, all of the errors are back…It’s tiring

Hi @kosted ,

I think I see what’s happening. You shouldn’t manually install the entities package because it is already a dependency of com.unity.2d.animation (you can see this in the Package Manager window, click Advanced → Show dependencies). You’ll notice that 2d.animation has a dependency on 0.0.12-preview.29 of entities whereas installing the latest version of entities directly will get you version 0.0.12-preview.30 (which for me introduces the errors you mentioned).

When you install a package directly, that version will override the version needed by other packages in your project so you end up with a combination of packages that don’t work together.

In summary, just add com.unity.2d.animation and com.unity.2d.ik to your project (you’ll notice entities still ends up in your Project window under Packages because it’s a dependency of 2d.animation).

HI @samuelb_unity you are right. So reinstall Unity from scratch, install only
com.unity.2d.animation and com.unity.2d.ik in a new fresh project. I didn’t install now Unityand everything works fine. Thank you very much.