Can not build apk in android (NavMesh)

I am trying to build on a device but a bunch of error appear
I am using 2018.3.11f1 personal.

I can run the project in the editor and on the unity remote but I cant build the apk.

just a few of the errors(111):


Assets\Scripts\NavMesh\NavMeshModifierVolumeEditor.cs(1,19): error CS0234: The type or namespace name ‘IMGUI’ does not exist in the namespace ‘UnityEditor’ (are you missing an assembly reference?)

Assets\Scripts\NavMesh\NavMeshModifierVolumeEditor.cs(2,7): error CS0246: The type or namespace name ‘UnityEditorInternal’ could not be found (are you missing a using directive or an assembly reference?)

Assets\Scripts\NavMesh\NavMeshSurfaceEditor.cs(4,19): error CS0234: The type or namespace name ‘IMGUI’ does not exist in the namespace ‘UnityEditor’ (are you missing an assembly reference?)

Assets\Scripts\NavMesh\NavMeshComponentsGUIUtility.cs(145,27): error CS0246: The type or namespace name ‘SerializedProperty’ could not be found (are you missing a using directive or an assembly reference?)

I had added manually the navMesh files as I was following an old tutorial.
removed the files and used the inbuild navMesh from unity 2019