Filename or extension too long error compiling for Android

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By punyi23

Godot and Python version:
Using Godot 3.1 stable and Python 3.7.3 (Anaconda)

OS/device including version:
Windows 10 Pro N version 1803

Issue description:
Hi everyone, I’m trying to implement GodotAdmob module for Android but when I’m compiling for Android using SCons I always get this error:

[Initial build] e[91mLinking Static Library e[95m==> e[93mmodules\[0m
scons: *** [modules\] El nombre del archivo o la extensión es demasiado largo
scons: building terminated because of errors.

I’ve been finding more issues like this and indeed I find it out some but all of them closed and resolved with a commit a year or few years ago. I also have enabled LongCmdLinesOnWin32 but the compilation get stuck always on same position. Also I move all the folders involved to C:// directory but worthless.

Steps to reproduce:
Go to command prompt on Windows, navigate to your Godot 3.1 stable folder and enter this instruction:

scons platform=android target=release android_arch=armv7

:bust_in_silhouette: Reply From: punyi23

Well, the solution for me was generate the templates in a MacOS. I wasn’t able to do it on Windows.