+1 vote

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

in Engine by (15 points)

2 Answers

0 votes

Set JAVA_HOME:

Linux:

Check if JAVAHOME is already set ,
Open Console
Execute : echo $JAVA
HOME
If output is a path , then your JAVAHOME 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 JAVAHOME=/usr/java/jre1.8.004
save the file
source ~/.bashrc OR source ~/.bashprofile
Execute : echo $JAVA
HOME
Output should print the path

font: https://docs.opsgenie.com/docs/setting-java_home

by (171 points)

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

0 votes

this actually , works for me on godot 3.2.2

https://www.youtube.com/watch?v=57ViANNWQCA

by (36 points)
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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories