No Java runtime present, requesting install.
Hi, I am getting No Java runtime present, requesting install. when i try to build my project.(Android Project)
Few hours ago it build perfectly even now i can build newly created project (i have tested to check whether its a problem in unity version)
only different i can thing about is i have added "Project Key" (in publish settings) and added google AdMob lib.
my unity version is 2019.3.7f
this is how i set jdk in .bash_profile(macos mojave)
export JAVA_HOME=/Applications/Unity/Hub/Editor/2019.3.7f1/PlaybackEngines/Andr$
export PATH=$JAVA_HOME/bin:$PATH
And this is the Error Log
No Java runtime present, requesting install.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
CommandInvokationFailure: Failed to update Android SDK package list.
/Applications/Unity/Hub/Editor/2019.3.7f1/PlaybackEngines/AndroidPlayer/SDK/tools/bin/sdkmanager --list
stderr[
No Java runtime present, requesting install.
]
stdout[
]
exit code: 1
Build completed with a result of 'Failed' in 3 seconds (3381 ms)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
Please help me to resolve this
Answer by unity_PupuMNyJTeEOvA · May 08, 2020 at 03:05 PM
@kombuwa try to set java into profile file. use the check here http://www.sajeconsultants.com/how-to-set-java_home-on-mac-os-x/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-set-java_home-on-mac-os-x . It solves my problem
Hey, In my mac java -version is working fine but it still gives me the same error. Please help
Your answer
![](https://koobas.hobune.stream/wayback/20220612231034im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Couldn't build Android App 2 Answers
Google Cast - Android Build fails 0 Answers
Android Unable to merge manifest Error 2 Answers
Compile failure apk with Vuforia 0 Answers