# UE 4.27.2 Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

**URL:** <https://forums.unrealengine.com/t/ue-4-27-2-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/507172>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4-27, question\
**Created:** [March 15, 2022, 11:35pm UTC](https://forums.unrealengine.com/t/ue-4-27-2-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/507172 "2022-03-15T23:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leboulier23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Leboulier23](https://forums.unrealengine.com/u/Leboulier23)\
**Post date:** [March 15, 2022, 11:35pm UTC](https://forums.unrealengine.com/t/ue-4-27-2-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/507172/1 "2022-03-15T23:35:45Z")

</div>

Hi,

I am experiencing an old error that’s been solved previously which was to use an other version of JDK.  
I’m using Unreal Engine 4.27.2 version, have a clean install of SDK and NDK and usig JDK v 17.0.2  
If you have the solution that would be greatly appreciated, thank.

FAILURE: Build failed with an exception.  
LogPlayLevel: \* What went wrong:  
LogPlayLevel: Could not initialize class org.codehaus.groovy.reflection.ReflectionCache

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fda6dfab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fda6dfab](https://forums.unrealengine.com/u/anonymous_user_fda6dfab)\
**Post date:** [March 18, 2022, 3:49pm UTC](https://forums.unrealengine.com/t/ue-4-27-2-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/507172/2 "2022-03-18T15:49:12Z")

</div>

Try use Oracle JDK v8 pre 8u202 version.

---

<div class="post-metadata">

**Author:** ![dev.ue.games](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dev.ue.games/32/466816_2.png) [@dev.ue.games](https://forums.unrealengine.com/u/dev.ue.games)\
**Post date:** [March 26, 2022, 7:57pm UTC](https://forums.unrealengine.com/t/ue-4-27-2-could-not-initialize-class-org-codehaus-groovy-reflection-reflectioncache/507172/3 "2022-03-26T19:57:19Z")

</div>

![Screenshot_24](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/a/2aa297500da06a490e61e8bdc31a3cee6f7cb968.jpeg)
