Newtonsoft.Json Error after upgrade to 2018


We have UiPath enterprise version recently upgraded from version 2016.2 to 2018.
We also use custom activity using Google APIs which requires newtonsoft.json 10.0.2 version.

Activity “Deserialize json” which was working fine before the upgrade is not working now.


System error at initialization: Method ‘Newtonsoft.Json.Linq.JToken get_Item(System.String)’ declared on type ‘Newtonsoft.Json.Linq.JObject’ cannot be called with instance of type ‘Newtonsoft.Json.Linq.JObject’

From a solution provided in another forum question, I deleted the newtonsoft.json 8.0.3 version from the folder “…AppData\Local\Temp\nuget”

It is working fine when I run from studio but erroring when running from orchestrator.

I will not be able to uninstall 10.0.2 version since the Google APIs are dependent on it.
Any help appreciated.