Android Build Errors

Mr-Hyper

New member
Hi,

I have setup an entity that has a basic behavior tree. The behavior tree has tasks that set int and bool parameters within the entity's animator.

When I test the behavior within the Unity editor in play mode, I am not getting any errors thrown by the behavior tree. However, when building to Android, I can see the following errors within Android logcat:

1752925536808.png
1752925555110.png
1752925580609.png

First of all, behavior tree is calling the SetInteger() and SetBool() methods, but I am confused as to why these methods cannot be found.

Secondly, I am not sure what the NullReferenceException is referring to within the behavior tree.

Thirdly, why are these errors popping up when running the build, but not in editor play mode?
 
Unity is stripping out the methods that you are calling with the task delegates. You can either change the stripping level or create a link.xml file which forces the methods that you are using to be included:

Thanks a lot for helping me resolve this issue! Managed to create a link.xml file -> defined the UnityEngine.Animator class to be preserved.

Playing the build on iOS/Android doesn't throw those errors anymore.

Been using Unity about 2 years now and this one is new to me haha xD
 
Back
Top