Integrating google AdMob sdk

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

I am Integrating google AdMob sdk for one of my godot game on a Linux mint operating system.

Shows the error on export

ERROR: JAVA_HOME is not set and no ‘java’ command could be found in your PATH.

Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.

Exit Code: 1

:bust_in_silhouette: Reply From: EmanuelOzorio



Check if JAVA_HOME is already set ,
Open Console
Execute : echo $JAVA_HOME
If output is a path , then your JAVA_HOME is set , make sure the path is correct
If output is empty , then execute following steps
Make sure you have installed Java already
Execute: vi ~/.bashrc OR vi ~/.bash_profile
add line : export JAVA_HOME=/usr/java/jre1.8.0_04
save the file
source ~/.bashrc OR source ~/.bash_profile
Execute : echo $JAVA_HOME
Output should print the path

font: Setting JAVA_HOME

Set variable $JAVA_HOME
When exporting an android application, gradle starts downloading, but the error “Exit Code: 1” is shown

webixs | 2020-11-06 21:22

:bust_in_silhouette: Reply From: pixistone

this actually , works for me on godot 3.2.2