I can't build my game in Unity with Astar Imported

When Astar is imported, I can’t build my game because of the editor tools. I’ve tried to add #if UNITY_EDITOR and #endif at the beginning and end of each using UnityEditor; but it doesn’t seem to be working. Any help? Thanks everyone.

Editor scripts should be in a folder called “Editor”; then they won’t get included in the build.

Never mind, I fixed it!

How did you fixed it?
I have the same problem!
Thanks!

I’m new to unity and I downloaded a tutorial project and when I tried to build…its showing it can’t build until compilers or something…plz help im totally new