+5
Answered

Library\PackageCache\com.unity.textmeshpro@2.0.0

rudolph 1 year ago updated by Lazlo Bonin (Lead Developer) 1 year ago 16

I Get the following error when installing Bolt on Unity 2019.1 released today.
1. Create new project
2. Download and import Bolt Asset
3. Get this error in the console

ERROR
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.2856.102, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Cannot continue until all compiler errors are cleared

Bolt Version:
1.4.1
Unity Version:
2019.1.0f2
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED

The Steps I followed:
1. Delete Bolt/Ludig from my Assets Folder
2. Download the Bolt 1.4.3 .net 4 version from the Ludiq website and import it into Unity. (if you download the asset from the Unity Asset Store it generates errors)

Satisfaction mark by rudolph 1 year ago

Is there an easy way to fix this?

+1

I ran into the same error when upgrading to 2019.1. Make sure you are using the .net 4.x version of bolt.

+1

It is the one I downloaded from the Unity Asset Store. I looked on the Ludiq website under downloads and there don't seem to be a distinction being made between .net 3.5 and .net 4.x. I Also tried the latest Alpha version and it also fails with other error messages.

+15

Found a 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 ***

+1

fixed for me, ty

+1

Great... fixed for me too, thank you very much Rudolph...

Pleasure, guys...

+2
Answered

Hi, indeed, any System.Threading conflict can be fixed by downloading the .NET 4.x version from the Downloads page. See this Known Issue entry: https://ludiq.io/bolt/known-issues#threading

Having that same error, downloaded the bolt 1.4.2 .Net4 build and upgraded and... it doesn't fix it for me.

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.2856.102, Culture=neutral, PublicKeyToken=31bf3856ad364e35' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Btw, tried using OP's trick, but unity doesn't let me downgrade textmeshpro to 1.3 (or anything at all)



You also on 2019.1? So far I have tried it on two of Unity Installations and it works. Maybe try it on a different computer to see if your Unity install is messed up?

Fixed in my project everything about "Task" errors, not only TextMeshPro...

1.remove Ludiq folder from project

2.download version .NET 4.x

3.import

if you still in problems, try to delete all files from Library folder in your project (quit Unity before), libraries will be regenerated on project load.

hope it helps for some1

I Downloaded the version on the Unity Store. Will check out the downloads section. I Did not at first see the .net versions until I clicked on the download link

+1

I tried Bolt_1_4_2_NET4.unitypackage on my 2019 project. Didn't work. I downgraded to 1.3 text mesh. It worked. Thanks so much rudolph for the great find.

Indeed, if you previously added the .NET 3.x version to your project, then imported the .NET 4.x version on top of it, you might still have the duplicate System.Threading.dll in Ludiq/Assemblies. Make sure you delete it if that's the case!

downgrading texmesh worked for me on 2019.1.9f1

Hi JKou, 

Just as a heads up, this shouldn't be necessary in new versions of Bolt anymore, because the installer will automatically detect whether you have a project using .NET 3.x or .NET 4.x.