Skip to content

Trying to fetch Assets on Android causes a runtime error #134

@JohannesLoot

Description

@JohannesLoot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions