Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

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\com.unity.textmeshpro@2.0.0\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

Possible duplicate of The predefined type 'System.Threading.Tasks.Task' is defined in multiple assemblies in the global alias – Bizhan Apr 21, 2019 at 11:03 Thank you for the answer, To fix the problem I needed to downgrade the TextmeshPro in Package Manager. – Fifax Apr 21, 2019 at 16:02 Please don't add "solved" or similar phrases to your question when you've solved the problem. If someone gave you an answer, accept it. If you found a solution on your own, post an answer (you can also accept your own answer after two days). Accepting answers is also the way to show a question has been solved - editing "solved" into the question is not. You can recover the answer you edited in from the revision history if you don't want to re-write the text. – Zoe stands with Ukraine Jun 2, 2019 at 10:54

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

The way to fix the error in unity 2019.1.0f2

  • Go to Window->Package Manager
  • TextMesh Pro (Version 2.0.0 will be installed)
  • 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
  • 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!

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question. Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers.