[Solved] Build Failed because of Textmesh Pro

Hi all,

yesterday I updated to Unity 5.6.0f3 and installed the Textmesh pro plugin in an existing project that was previously created in Unity 5.5. When I attempt to build the project with UCB it fails with this error:

“error CS0246: The type or namespace name `TMPro’ could not be found. Are you missing an assembly reference?”

I’m able to build the project directly on my android device so it might be an incompatibility problem between the plugin and UCB?

Thanks in advance.

Do a clean rebuild, that worked for me.

Thanks! It also worked for me :slight_smile:

Pardon my ignorance, but what is a “clean rebuild”. I’m having this exact same problem.

Hey!

  1. Press the arrow at the new build button.
  2. Press build a combination…
  3. There it is! :slight_smile:
1 Like

@Basti_TinyRoar thank you for your reply! Found it.

Just in case anyone else comes across this problem - for me it was a SourceTree problem (ignoring DLL files).
This link was quite helpful:

Thank you!

I am using Unity 5.6.I am not able to find the Build a combination option.The build button does not have any arrow beside it either.I check the Build settings too but there does not exist any such option.

What @Basti_TinyRoar is referring to is Unity Cloud Build: https://unity3d.com/unity/features/cloud-build
That’s the only place you’ll find that option!

1 Like

I had references to TextMesh Pro in scripts within my plugin folder but had placed TextMeshPro itself outside of plugins. I believe plugins folder is compiled first and thus it couldn’t find the TextMeshPro until I moved it. That or just moving the folder caused the project to clean as other mentioned.

Just go to the asset store and dowanload textmesh pro asset and import it it will work.

1 Like

I’m using 2018.2.20f1…

I was seeing this error in the editor, even before compiling. By looking at Visual Studio’s suggested fixes, I learned I needed using TMPro; added to the mix.

I hope this helps someone.

1 Like

That’s the BEST EVER SOLUTION without code. Just download TEXTMESH and it finally worked.

Not working at all. Now I’m getting error messages because of conflict.
TMPro_UGUI_Private exist 2 times … even though it exist only one time…