YarnSpinnerTool / YarnSpinner-Unity

The official Unity integration for Yarn Spinner, the friendly dialogue tool.
MIT License
491 stars 85 forks source link

For some reason yarn is not working in Android Build #247

Closed JoseMarioPerezCotes closed 1 year ago

JoseMarioPerezCotes commented 1 year ago

Good day Yarn team,

currently I'm doing a build in a empty project that only execute a dialog, in the editor works fine, but when I do a build in android, the dialog not appear, and I get this error in the android studio console:

   E  ExecutionEngineException: Attempting to call method 'System.Func`3[[System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Single, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]::.ctor' for which no ahead of time (AOT) code was generated.
                                                                                                  at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x00000] in <00000000000000000000000000000000>:0 
                                                                                                  at Yarn.Unity.ActionManager.FindAllActions (System.Collections.Generic.IEnumerable`1[T] assemblyNames) [0x00000] in <00000000000000000000000000000000>:0 
                                                                                                  at Yarn.Unity.DialogueRunner.SetProject (Yarn.Unity.YarnProject newProject) [0x00000] in <00000000000000000000000000000000>:0 
                                                                                                  at Yarn.Unity.DialogueRunner.Awake () [0x00000] in <00000000000000000000000000000000>:0

thanks for your time and attention.

-José

JoseMarioPerezCotes commented 1 year ago

issue solved, just change to Faster (Smaller) build

thanks very much to KXI System on Discord

fasterSmaller