allartprotocol / unity-solana-wallet

The First Open-Source Unity-Solana Wallet with NFT support
285 stars 133 forks source link

error CS0433: The type 'JToken' exists in both 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' #12

Closed aerctic closed 2 years ago

aerctic commented 2 years ago

C:\unity-solana-wallet-main\Runtime\codebase\utility\ObjectToByte.cs(101,38): error CS0433: The type 'JToken' exists in both 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=null' and 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'

xrami247 commented 2 years ago

You have two Newtonsoft.Json's in your project, I believe you wanna keep the one from this repo. Renaming might also fix it

liu1700 commented 2 years ago

You might want to update the .asmdef file in solana wallet. Check the override reference and add the dll files used by solana wallet to the assembly references list.