Ml-agents: `System.Text.StringBuilder' could be found.

Created on 31 Mar 2018  路  12Comments  路  Source: Unity-Technologies/ml-agents

Drag the ML-Agents folder from unity-environments/Assets to the Unity Editor Project window.And then print this error message.My queastion is why I missing this assembly reference while I Drag the same folder into the Unity Editor Project window and where is it?

_Assets/ML-Agents/Scripts/ExternalCommunicator.cs(259,24): error CS1061: Type System.Text.StringBuilder' does not contain a definition forClear' and no extension method Clear' of typeSystem.Text.StringBuilder' could be found. Are you missing an assembly reference?_

Thank you so much!

help-wanted needs-info

Most helpful comment

I assume you created a new project and tried to import all the ml-agents assets, right?
If so, make sure that you are running on .NET 4.6:

Edit -> Project Settings -> Player
Then in the inspector under "Other Settings" select the .NET 4.6 equivalent Scripting Runtime Version.

All 12 comments

I assume you created a new project and tried to import all the ml-agents assets, right?
If so, make sure that you are running on .NET 4.6:

Edit -> Project Settings -> Player
Then in the inspector under "Other Settings" select the .NET 4.6 equivalent Scripting Runtime Version.

@MarcoMeter Yeah,you got it,but I found a way that open my new project with double clicking one of the scene from the example folder to avoid this error,it will be fixed automatically by Unity Editor loading the .meta files. I will check my Runtime Version when I import all the ml-agents assets again,and I will reply to you as quickly as possible.

Is your editor version 2018.1.0b6?
I assume that's important.

I had a project that had this error, but I was using Unity 2017.3.1f1. Using Unity 2018.1.0b13 and no errors.
Then I reopened the project with Unity 2017.3.1f1 and no errors.

@gw1108 2017.3.1f1 is my version.

I had exactly the same problem and thanks to MarcoMeter it was solved. Thanks! I had selected the .net 3.5 instead of 4.6.

Hi @WindRunnerCackerChen - did the feedback on this thread resolve the issue? Let us know if you need any additional support.

had same problem but resolution from MarcoMeter seems to have fixed it , thanx.

had the same problem and was able to fix it now thanks to MarcoMeter. (I used 2017.4.1f1 Personal just installed yesterday on OSX.) It might be nicer to mention this in this tutorial.

Also before noticing this issue, I originally stuck in Select the Scripts/Brain since I could not find Scripts/Brain component. But this is also fixed and I can see Scripts/Brain component. Thank you!

@mmattar definitely done.thanks

Great, thanks @WindRunnerCackerChen.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Sohojoe picture Sohojoe  路  3Comments

MarcPilgaard picture MarcPilgaard  路  3Comments

dlindmark picture dlindmark  路  3Comments

RavenLeeANU picture RavenLeeANU  路  4Comments

MrGitGo picture MrGitGo  路  4Comments