JDK Folder missing after installing Android Studio

Hey,

I tried following the Anrdoid setup page of the docs, installed Android Studio, yet when I run the AndroidSetup.bat from UE4.27’s install folder I get this message:

ERROR: JAVA_HOME is set to an invalid directory: C:\NVPACK\jdk1.8.0_77

Does anyone have any idea what could have gone wrong? Thanks!

Hello, I think nvpack is not fully compatible with 4.27. Download the JDK version here:

and on Unreal Engine, Settings-Project settings - Platforms - Android SDK - Set “location of java” like this: C:/Program Files/Java/jdk1.8.0_202 or where you installed it.

if you need to change JAVA_HOME directory, on your Start menu of windows type : “environment variables” than Advanced - “environment variables”
add like this:

I hope it’s fix your problem