-
Notifications
You must be signed in to change notification settings - Fork 131
This package still won't work on unity (IL2CPP builds) #132
Comments
Hi @lordaltair! Thanks for reporting this! In what way does it not work on Android? Are there errors during compilation/building or during runtime? And if so, could you post the errors you receive? Kind regards |
Hi, Thanks for helping. No, it is on runtime, I have an android build but nothing works. The game works but the newtonsoft JSON package won't work. It isn't serialize or deserialize JSON or ... |
If it's during runtime then I suggest you look into potential AOT issues. I've written some guides in the wiki. Recommend starting with What even is AOT followed by Fix AOT compilation errors. To see the errors that occurs, I would suggest something like making a development/debug build, potentially by attaching your local Unity Editor to your Android phone so errors are relayed to your Unity Editor |
Well. I got no error. I use my mobile and I saw the errors. there was no error in the project. It is like that the compiler does not compile codes in which I used the package. Thanks for the links but those weren't helpful |
Could you screenshot the errors you saw on your phone and post them here? |
It happens to me too. Running Unity 2020.3.7f1 and Windows 10. |
After adding a custom
Even though all my properties are |
As IL2CPP has a much stricter stripping algorithm, my guess is that your code never explicitly sets those values, but it does get them. A property setter is just a method, and if it's unused then IL2CPP will strip it out. Suggest using link.xml or a |
You should add the following to the link.xml: |
Hi, I'm trying to use this package on my unity project. As the description says, the purpose of the package is to get IL2CPP builds. It is working on Unity editor but it is not working on android.
I'm using Unity 2019.3.7.f1 and the Newtonsoft.Json-for-Unity package version is 13.0.102. I tried other versions, too like 12.0.302 or 10.0.302. My OS is windows 10 and unity android built target version is 26. Is there any specific settings that I have to use? I didn't say anything in the description.
Thanks for your help.
The text was updated successfully, but these errors were encountered: