# Android packaging error - Execution failed for task ':app:compileDebugJavaWithJavac

**URL:** <https://forums.unrealengine.com/t/android-packaging-error-execution-failed-for-task-compiledebugjavawithjavac/1862869>\
**Category:** Mobile\
**Tags:** unreal-engine, crash, editor, question\
**Created:** [May 19, 2024, 6:38am UTC](https://forums.unrealengine.com/t/android-packaging-error-execution-failed-for-task-compiledebugjavawithjavac/1862869 "2024-05-19T06:38:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![9AssassinGHOST9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9AssassinGHOST9](https://forums.unrealengine.com/u/9AssassinGHOST9)\
**Post date:** [May 19, 2024, 6:38am UTC](https://forums.unrealengine.com/t/android-packaging-error-execution-failed-for-task-compiledebugjavawithjavac/1862869/1 "2024-05-19T06:38:04Z")

</div>

Hello everyone,  
Thank you very much for engaging on my problem

Currently I am working on a unreal engine mobile game.  
I am having trouble in packaging phrase of the development.  
When I package the project It gives me following error.

Execution failed for task ':app:compileDebugJavaWithJavac

 ![Screenshot_18](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/b/abbdcb98397b50cde3a8bc0567aa5b335367836c.jpeg)

These are the android sdks I have installed.

 ![Screenshot_21](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/8/f/c8fd9324d9b17508da3b2bf52bfffaceed733eef.jpeg)  
 ![Screenshot_22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/3/b13639cb17af1a57ce417c7a409aa23a4de61c1c.jpeg)  
 ![Screenshot_23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/8/0885b1274996be4f0c6d82bad8ecc2a0123ba748.jpeg)  
 ![Screenshot_24](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/9/6e909b80e1cd8456f00258a1c5adbe0b239a76da.jpeg)  
 ![Screenshot_25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/4/c/64c94ade00aa5924fc3e3db9bc41ec38fed951d9.jpeg)  
 ![Screenshot_26](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/4/d3447f1f6df2daf8c8f09a7fb24f1504a30586b9.jpeg)

These are the android sdk build tools I have installed.

 ![Screenshot_27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/a/d/6ad070635e77fdb3b10a8a00714a1773dc7c3e14.jpeg)

NDK version

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/4/46416c986b974913ccd6d6fa5cfffc16d1907adc.png)

Other tools

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/3/d/33d1f35d9e9c90da8073a2358da9fc0ea7e769b8.png)

First I had JDK 22. but with that version of java I got an error. So I installed JDK 17 and solved that error.

I really appreciate your willingness to help and your valuable time for me.

---

<div class="post-metadata">

**Author:** ![9AssassinGHOST9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9AssassinGHOST9](https://forums.unrealengine.com/u/9AssassinGHOST9)\
**Post date:** [May 19, 2024, 6:52am UTC](https://forums.unrealengine.com/t/android-packaging-error-execution-failed-for-task-compiledebugjavawithjavac/1862869/2 "2024-05-19T06:52:32Z")

</div>

I am using unreal engine 5.3 version
