A* Pathfinding Project

Runtime error on Android Build


#1

I am using single 2D Isometric Grid Graph. Game runs perfectly fine in editor. However on exporting to Android , i am getting this error on launch.

AndroidPlayer(ADB@127.0.0.1:34999) Caught exception while deserializing data.
System.MissingMethodException: Default constructor not found for type Pathfinding.GridGraph
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x0007b] in <8aa19b69f9df4f6e9fb480502bc4e9f6>:0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <8aa19b69f9df4f6e9fb480502bc4e9f6>:0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <8aa19b69f9df4f6e9fb480502bc4e9f6>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <8aa19b69f9df4f6e9fb480502bc4e9f6>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <8aa19b69f9df4f6e9fb480502bc4e9f6>:0
at Pathfinding.AstarData.CreateGraph (System.Type type) [0x00001] in D:\WORK\Zorbs\Assets\AstarPathfindingProject\Core\AstarData.cs:507
at Pathfinding.Serialization.AstarSerializer.DeserializeGraph (System.Int32 zipIndex, System.Int32 graphIndex) [0x00023] in D:\WORK\Zorbs\Assets\AstarPathfindingProject\Core\Serialization\JsonSerializer.cs:557
at Pathfinding.Serialization.AstarSerializer.DeserializeGraphs () [0x00025] in D:\WORK\Zorbs\Assets\AstarPathfindingProject\Core\Serialization\JsonSerializer.cs:592
at Pathfinding.AstarData.DeserializeGraphsPartAdditive (Pathfinding.Serialization.AstarSerializer sr) [0x00033] in D:\WORK\Zorbs\Assets\AstarPathfindingProject\Core\AstarData.cs:396
at Pathfinding.AstarData.DeserializeGraphsAdditive (System.Byte[] bytes) [0x00026] in D:\WORK\Zorbs\Assets\AstarPathfindingProject\Core\AstarData.cs:368


#2

Hi

This seems to be the same error as in this post: Default Constructor not found for type Pathfinding.GridGraph
I wonder if this is due to a recent change in Unity… I have never seen that error before, and then suddenly two users are reporting it in two days…


#3

Thanks , that worked. the solution in other post “Setting Stripping to Low” worked for me.