Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 519
Fifax Avatar asked Apr 21 '19 09:04

Fifax


2 Answers

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

like image 199
Fifax Avatar answered Sep 21 '22 03:09

Fifax


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!

like image 28
Kingsley Avatar answered Sep 22 '22 03:09

Kingsley