# UE4.25.0 Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

**URL:** <https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244>\
**Category:** Mobile\
**Tags:** Google-Play, gradle, initialize, unreal-engine, Android, question\
**Created:** [June 4, 2020, 7:57pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244 "2020-06-04T19:57:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![IDiZuI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IDiZuI](https://forums.unrealengine.com/u/IDiZuI)\
**Post date:** [June 4, 2020, 7:57pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/1 "2020-06-04T19:57:22Z")

</div>

Can help? Nothing suggested here helps [https://answers.unrealengine.com/que...il-ue-418.html](https://answers.unrealengine.com/que...il-ue-418.html)

FAILURE: Build failed with an exception.  
UATHelper: Packaging (Android (ASTC)): \* What went wrong:  
UATHelper: Packaging (Android (ASTC)): Could not initialize class org.codehaus.groovy.reflection.ReflectionCache  
UATHelper: Packaging (Android (ASTC)): \* Try:  
UATHelper: Packaging (Android (ASTC)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
UATHelper: Packaging (Android (ASTC)): \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
UATHelper: Packaging (Android (ASTC)): BUILD FAILED in 2s  
UATHelper: Packaging (Android (ASTC)): ERROR: cmd.exe failed with args /c “G:\UE\Falcoware\Check\_Reaction\Check\_Reaction\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease  
UATHelper: Packaging (Android (ASTC)): (see C:\Users\User\AppData\Roaming\Unreal Engine\AutomationTool\Logs\F+EpicGames+UE\_4.25\Log.txt for full exception trace)  
PackagingResults: Error: cmd.exe failed with args /c “G:\UE\Falcoware\Check\_Reaction\Check\_Reaction\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleRelease

---

<div class="post-metadata">

**Author:** ![princenkmalcom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@princenkmalcom](https://forums.unrealengine.com/u/princenkmalcom)\
**Post date:** [July 3, 2020, 2:22pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/2 "2020-07-03T14:22:13Z")

</div>

please am having the same issue,have you fixed it

---

<div class="post-metadata">

**Author:** ![sampyxis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sampyxis/32/586683_2.png) [@sampyxis](https://forums.unrealengine.com/u/sampyxis)\
**Post date:** [July 16, 2020, 11:30am UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/3 "2020-07-16T11:30:36Z")

</div>

I had this same problem and took me a while to find something that worked for me.

I’m using 4.25 and have a clean install of Android Studio and Java.

From reading the bug reports on the gradle github - seems that the solution is to download JDK v. 8 - I did this, repointed my Unreal settings to here - and then it worked smoothly.

Hope this answer helps someone.

---

<div class="post-metadata">

**Author:** ![TLaa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TLaa](https://forums.unrealengine.com/u/TLaa)\
**Post date:** [January 10, 2021, 10:49am UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/4 "2021-01-10T10:49:58Z")

</div>

Same Problem… (UE 4.26)  
Solved it with this steps:  
Download JDK v.8 and set it in UE Program Settings/ Platforms/ Android SDK - Location of JAVA - solved some errors but not all!

I notice that the UE auto NDK download has instaled NDK versión 21.1.6352462 - and in the UE docs ([Updates to required setup for Android NDK 21 in Unreal Engine 4.25 - Unreal Engine](https://www.unrealengine.com/en-US/tech-blog/updates-to-required-setup-for-android-ndk-21-in-unreal-engine-4-25?sessionInvalidated=true)) recoment 21.0.6113669  
So i changed the NDK to 21.0.6113669 using already installed the Android Studio 3.5.3:  
Open Android Studio  
Configure  
SDK Manager  
SDK Tools  
show Package Deteils  
Install NDK 21.0.6113669  
Open UE project:  
Change the NDK versionfolder in your project UE Program Settings/ Platforms/ Android SDK - Locación of NDK 21.0.6113669

this solved the problem for me.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ab7432c6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ab7432c6](https://forums.unrealengine.com/u/anonymous_user_ab7432c6)\
**Post date:** [January 19, 2021, 3:09pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/5 "2021-01-19T15:09:05Z")

</div>

I have been trying for over four hours and still cant build a simple basic project. It is UNREAL and EPIC that an engine would require so many modifications just to start working. This software company is a joke.

---

<div class="post-metadata">

**Author:** ![Orfeas\_El](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Orfeas\_El](https://forums.unrealengine.com/u/Orfeas_El)\
**Post date:** [June 10, 2021, 6:32am UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/6 "2021-06-10T06:32:43Z")

</div>

This worked for me in 4.26 as well. Thanks!

---

<div class="post-metadata">

**Author:** ![tmuhlhausen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmuhlhausen](https://forums.unrealengine.com/u/tmuhlhausen)\
**Post date:** [October 25, 2021, 6:25pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/7 "2021-10-25T18:25:28Z")

</div>

sampyxis solution was previously found up in the thread

---

<div class="post-metadata">

**Author:** ![tmuhlhausen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmuhlhausen](https://forums.unrealengine.com/u/tmuhlhausen)\
**Post date:** [October 25, 2021, 6:28pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/8 "2021-10-25T18:28:56Z")

</div>

currently following this fix, if i do not reply or correct this post… it worked

---

<div class="post-metadata">

**Author:** ![tmuhlhausen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tmuhlhausen](https://forums.unrealengine.com/u/tmuhlhausen)\
**Post date:** [October 25, 2021, 6:41pm UTC](https://forums.unrealengine.com/t/ue4-25-0-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/466244/9 "2021-10-25T18:41:32Z")

</div>

… the most intuitive IDE in my opinion. the real joke, is expectancy without any effort
