Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JohannesLoot opened this issue May 23, 2023 · 0 comments
Open

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

JohannesLoot opened this issue May 23, 2023 · 0 comments

Comments

@JohannesLoot
Copy link
Contributor

JohannesLoot commented May 23, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant