Problem when compiling for android

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

I tried to compile my own android template, but Im facing this problem when using scons :

C:\Users\user\godot>scons platform=android target=release
scons: Reading SConscript files ...

MSVC not detected, attempting MinGW.
- could not detect gcc.
Please, make sure a path to a MinGW /bin directory is accessible into the enviro
nment PATH.

UnboundLocalError: local variable 'can_vectorize' referenced before assignment:
  File "C:\Users\user\godot\SConstruct", line 286:
  File "./platform/android\", line 95:
    if (can_vectorize):


im using windows. what’s does these means ? I have no coding background

It is not detecting the compilers, have you set up the environment variables correctly?

Also be sure to be running the correct console, for android under windows I think that you need to not use the VS environment, only the normal console.

Check here Compiling for Android — Godot Engine (3.0) documentation in English

Also, be sure to get stable sources (like 3.0 branch or from the Releases tab on GitHub), unless you want to test master (which may have broken platforms sometimes).

eons | 2018-06-01 00:26

:bust_in_silhouette: Reply From: lee451

Since I know that you’re running version 2.1.2 from a previous post

Your issue seems to be very similar to:

Which if you go down the rabbit hole you’ll find:

And how it was fixed specifically can be found here:

The fix seemed to include modifying two files.

actually im compiling this for godot 2.1.4. For godot 2.1.2, I download the default template from Shinnil blog, but there’s a problem in it now (Too many unused permission),

I’ve read your link,and Im trying to understand it

I hope that someone will upload the new fixed google admob template for free soon…
cause it help us and some people out there a lot :frowning:

thankss btw :slight_smile:

ricardohogan | 2018-06-01 15:59