# JDK Folder missing after installing Android Studio

**URL:** <https://forums.unrealengine.com/t/jdk-folder-missing-after-installing-android-studio/274048>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [January 21, 2022, 7:26pm UTC](https://forums.unrealengine.com/t/jdk-folder-missing-after-installing-android-studio/274048 "2022-01-21T19:26:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fisher007](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fisher007](https://forums.unrealengine.com/u/Fisher007)\
**Post date:** [January 21, 2022, 7:26pm UTC](https://forums.unrealengine.com/t/jdk-folder-missing-after-installing-android-studio/274048/1 "2022-01-21T19:26:13Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![AngelisDead](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/angelisdead/32/954203_2.png) [@AngelisDead](https://forums.unrealengine.com/u/AngelisDead)\
**Post date:** [January 22, 2022, 1:50pm UTC](https://forums.unrealengine.com/t/jdk-folder-missing-after-installing-android-studio/274048/2 "2022-01-22T13:50:50Z")

</div>

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

> **[Java Archive Downloads - Java SE 8](https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html#license-lightbox)**
>
> Java Archive Downloads - Java SE 8

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:

 ![ortam değişkenleri](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/3/232c08be39a14f39b5332f73ad795102cffe2e0b.png)

I hope it’s fix your problem
