Fifax
Fifax

Reputation: 121

Unity 2019 - How to fix TextMeshPro 2.0 error cs0433

I have just started new project that contains Vuforia SDK. After making some changes I decided to install GitHub extension from Asset Store to make some backup. After that my textMeshPro plugin went crazy, throwing an annoying error which I can't deal with. The error says:

Library\PackageCache\[email protected]\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'System.Threading, Version=1.0.3333.0, Culture=neutral, PublicKeyToken=402899b480e6f383' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Does anybody has an idea how to get rid of it?

My Unity version is 2019.1.0f2

Upvotes: 9

Views: 9656

Answers (2)

Fifax
Fifax

Reputation: 121

SOLUTION:

Thank you for your answers, I have found solution on other forum.

The way to fix the error in unity 2019.1.0f2

  1. Go to Window->Package Manager
  2. TextMesh Pro (Version 2.0.0 will be installed)
  3. Click on the arrow > on the left to see all the available versions. 4 .Update TextMesh Pro to 1.3.0 (same version as in Unity 2018.3.12f1) Let the compiler finish and you should see the error clearing from the console

Picture_tip

Link to original post: Original post

Upvotes: 3

Kingsley
Kingsley

Reputation: 11

In Unity 2019.1.5 Looks like TextMeshPro needs at least .net ver 4, I changed .net from 3.5 to 4.6 by going: File > Build Settings > Player Settings > Player > Scripting Runtime Version (which also has a warning on 3.5), selecting 4.6, after reload, textMesh error gone ... moving onto all the other errors in my project!

Upvotes: 1

Related Questions