# The type or namespace name 'Newtonsoft' could not be found

### **Issue**

{% hint style="danger" %}
After importing **AI Dev Kit** into Unity, you encounter **a flood of errors** saying\
\&#xNAN;**“The type or namespace name 'Newtonsoft' could not be found.”** like in the screenshot below.
{% endhint %}

<figure><img src="https://3976940093-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl7yXji5RzYhdDYsx9d1n%2Fuploads%2Fgit-blob-bf7ce9f0969f14a4726fe0f87700acf3eb30a3ba%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Possible Cause**

{% hint style="info" %}
In rare cases, Unity fails to automatically apply the required **Scripting Define Symbol** (`UNITY_NEWTONSOFT_JSON, CYSHARP_UNITASK`) during installation. This prevents the editor scripts from activating, resulting in the AI Dev Kit menu not appearing.
{% endhint %}

### **How to Fix**

{% hint style="success" %}

* Open **File > Build Settings >** **Project Settings > Player > Other Settings**
* Locate the **Scripting Define Symbols** field for your current build target
* Manually add these two symbols:

  ```
  UNITY_NEWTONSOFT_JSON
  CYSHARP_UNITASK
  ```
* Press Enter or click elsewhere to confirm the change
* Unity should now recompile the scripts, and the `AI Dev Kit` menu should appear under `Tools`
  {% endhint %}

### **If It Still Doesn’t Work**

{% hint style="success" %}

* Sometimes, Unity also fails to automatically install required dependencies during the package import. Make sure you have following folders in **Packages** in your project window:
  * `Newtonsoft Json`
  * `UniTask`
* If you are missing any of the above, manual install the dependencies.
  * **Newtonsoft.Json:** [Manual Installation Guide](https://glitch9.gitbook.io/docs/support/how-to-setup-newtonsoft.json)
  * **Cysharp.UniTask:** [Manual Installation Guide](https://glitch9.gitbook.io/docs/support/how-to-setup-unitask)
* Each guide provides step-by-step instructions for adding the packages to your Unity project and verifying that everything is set up correctly. After completing the installations, restart Unity to ensure the changes take effect.
  {% endhint %}

{% hint style="info" %}
If the issue persists even with the latest version, consider joining [Discord](https://discord.gg/hgajxPpJYf) — where I provide **preview builds**, **hotfixes**, and direct support.

🔒 **Gain** **Access to the PRO preview builds channel.**\
To gain access, please send me your **proof of purchase** (e.g. invoice or order number).
{% endhint %}
