unity-sdk icon indicating copy to clipboard operation
unity-sdk copied to clipboard

Trying to fetch Assets on Android causes a runtime error

Open JohannesLoot opened this issue 2 years ago • 0 comments

When using the function LootLockerSDKManager.GetAssetListWithCount() on an Android device, there will be a runtime error when receiving the response.

There is a workaround that you can do that does not impact anything in your game, it is just some more steps to setup.

Workaround

  1. Go to Window -> Package manager, click the plus-sign in the top-left corner, "Add package by name"
  2. Paste this; com.unity.nuget.newtonsoft-json
  3. Click Add
  4. Wait for the package to install
  5. Go to Project Settings -> Player -> scroll down to Scripting Define Symbols and add LOOTLOCKER_USE_NEWTONSOFTJSON
  6. All done!

Note: If you already have NewtonSoft installed in your project, you can skip step 1 to 4.

We are aware of this issue and are working on a solution.

JohannesLoot avatar May 23 '23 13:05 JohannesLoot