# Cant launch on android devince on 4.25

**URL:** <https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514>\
**Category:** Community & Industry Discussion\
**Tags:** launch, UE4-25, unreal-engine, device, Android, question, compilation-log\
**Created:** [July 22, 2020, 12:43pm UTC](https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514 "2020-07-22T12:43:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zorrograndeepee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zorrograndeepee](https://forums.unrealengine.com/u/zorrograndeepee)\
**Post date:** [July 22, 2020, 12:43pm UTC](https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514/1 "2020-07-22T12:43:09Z")

</div>

i cant launch on android device and the log say in red:

“ERROR: cmd.exe failed with args /c “D:\Jeux enreal\Projet unreal\testandroiddevice\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug”

and

“java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7”

---

<div class="post-metadata">

**Author:** ![enac\_oid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@enac\_oid](https://forums.unrealengine.com/u/enac_oid)\
**Post date:** [July 28, 2020, 8:48am UTC](https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514/2 "2020-07-28T08:48:43Z")

</div>

hi! i solved this problem by using this method!

[https://forums.unrealengine.com/development-discussion/android-development/1757478-android-package-project-error-could-not-initialize-class-org-codehaus-groovy-vmplugin-v7-java7#post1757638](https://forums.unrealengine.com/development-discussion/android-development/1757478-android-package-project-error-could-not-initialize-class-org-codehaus-groovy-vmplugin-v7-java7#post1757638)

in this page if you scroll down you can find the Java SE Development Kit 8u151

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

you’ll need to manual retarget the jdk in unreal project settings once installed.

---

<div class="post-metadata">

**Author:** ![zorrograndeepee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@zorrograndeepee](https://forums.unrealengine.com/u/zorrograndeepee)\
**Post date:** [July 28, 2020, 9:08am UTC](https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514/3 "2020-07-28T09:08:58Z")

</div>

hello, i found the jdk is in android studio folder at “jdr” folder et its working now but thnaks 🙂

---

<div class="post-metadata">

**Author:** ![ArmarageX1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/armaragex1/32/1070383_2.png) [@ArmarageX1](https://forums.unrealengine.com/u/ArmarageX1)\
**Post date:** [July 10, 2022, 1:19pm UTC](https://forums.unrealengine.com/t/cant-launch-on-android-devince-on-4-25/468514/4 "2022-07-10T13:19:58Z")

</div>

![Screen Shot 2022-07-10 at 4.06.43 pm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/d/dfd9dc338a6ccffc81de993068711b8c0b3e9047.png)

Been Stuck on this too - and finally got mine working!  
The answer is essentially the hooking up of the JDK folder needs fixing …

But I tried hooking up the actual JDK.2.1.21312 folder - with still no success  
And it gave that error.

But after hooking up the the ANDROID STUDIO / JRE folder … mine worked.  
(Not Android Sdk/Jre - but Android Studio / Jre)

Although mine is on MAC - so i had to point deeper - into Contents / Home as well  
Not sure if on PC - just pointing to JRE might suffice (which i saw on some others tutorials)

But long story short - that error - represents - the hookup of the JDK - is still not good enough… and needs to be pointed ‘correctly’…

My settings above has (finally) worked for me.  
Hope that helps some peeps!
