Skip to content

Newtonsoft Json conflict unity and thirdweb .net runtime #223

@Cosir1

Description

@Cosir1

Issue:
I have been facing an issue where importing thirdweb to my unity project it generates error ie. AotHelper. Library\PackageCache\com.unity.services.core@1.13.0\Editor\Core\Environments\Client\Http\JsonHelpers.cs(27,13): error CS0103: The name 'AotHelper' does not exist in the current context
The issue is conflicting with unity's cloudsave and leaderboards package.

Recreating the issue:
Creating a unity project then importing thirdweb and installing leaderboard and cloudsave packages from unity package manager.
After importing the package it will generate errors relating to JsonHelper and AotHelper.

Temporary solution:
When deleting Newtonsoft-13.0.2 folder in Assets/Thirdweb/Runtime/NET/Newtonsoft-json-13.0.2. The error is gone. But it breaks wallet connect.

Specs:
Thirdweb v5.13.1 [Latest version]
Unity 2022.3.23.1f
Leaderboards 2.2.1
Cloudsave 3.2.1
Newtonsoft Json 3.2.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions