+1 vote

i've read a lot of questions and tutorials with the same topic as mine, but im still not clear.
it seems that to add admob to your game, first you need to get the modules, but before that, you need to compile your files correct if im wrong. this is where the problem begins

i've read http://docs.godotengine.org/en/latest/development/compiling/compiling_for_android.html and http://shinnil.blogspot.co.id/2016/03/tutorial-compiling-android-module-for.html .

it says that I need to download several programs first to get started. I've download it, but the ANDROIDHOME and ANDROIDNDK_ROOT doesnt exixst so i cant edit its path. Do I need to create a new variables ?


also, is there any easy way to do this ?

asked Jul 15, 2017 in Projects by ricardohogan (38 points)
edited Jul 16, 2017 by eons

Is pretty easy once you set up correctly all the tools (and you survive in the process if using windows).

If Android HOME and SDK environment variables do not exist, then you need to create them.

thx a lott ! im already try the other steps after that ,and now my problem is when i use type scons paltform blahblah, it says :" 'scons' is not recognized as an internal or external command, operable program or batch file." my SConstruct file is already in my godot folder in drive C, how to fix it ?

The one that says "compiling for your_ operating _system" have instructions on how to install and configure scons.

I guess that is Windows so it should be:
http://docs.godotengine.org/en/latest/development/compiling/compiling_for_windows.html

Just the python and scons configuration may be enough, I think (no need to deal with visual studio mess, if I'm not wrong).

okay, i see. I've configure pthon and scons. now its working but im still not sure. Is this the right result ? *look at the photo
enter image description here
also, in http://docs.godotengine.org/en/latest/development/compiling/compiling_for_android.html
, it says that the resulting apk will be in "bin\android_debug.apk".
where' is this located? i dont find any "bin" folder here (C:\Users\user\godot).

im trying to ignore these things, and manage to finish the tutorials. but when I debug it on my phone, it exits/stops immediately. (I use the GodotGooglePlayServices module from bbAdmob). can you tell me where the problem is ?

btw, thanks a lot ! XD

I have tried to fix the image you have added but seems to be private or something.


You need to run scons and (when scons completed without errors) gradlew like that page says, always where you have godot sources.


And try to look at the docs for 2.1 (currently stable too) if you are building 2.1, that part is currently the same but some day may change (you can change versions of the docs on the bottom left of the page).
http://docs.godotengine.org/en/2.1/development/compiling/compiling_for_android.html

sorry for the picture, i've fixed the image, what do you think about it ?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.