# How to include a jar file while packaging

**URL:** <https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736>\
**Category:** Platform & Builds\
**Tags:** gradle, unreal-engine, Android, packaging-projects, question\
**Created:** [October 29, 2019, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736 "2019-10-29T14:05:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [October 29, 2019, 2:05pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736/1 "2019-10-29T14:05:37Z")

</div>

## Help How to include a jar file while packaging ?!

* * *

## 

Hi There everyone,  
When i package my project for android  
i get this error  
Z:\app\src\main\java\com\sphinxue4\SpeechRecognitionWorker.java:183: error: cannot find symbol

this symbol it cant find is supposd to be in a library called  
pocketsphinx-android-5prealpha-nolib.jar

so how can i point the gradle to this library while packaging  
i added it to

ProjectDir\Build\Android\libs  
but no luck

thanks in advance

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [October 29, 2019, 6:48pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736/2 "2019-10-29T18:48:56Z")

</div>

okay solved it  
just had to include the correct directory in the XML file

SpeechRecognition\_APL.xml

---

<div class="post-metadata">

**Author:** ![shammi.seth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shammi.seth](https://forums.unrealengine.com/u/shammi.seth)\
**Post date:** [August 18, 2022, 7:13pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736/3 "2022-08-18T19:13:10Z")

</div>

Hi is that SpeechRecognition\_APL plugin working for you, i managed to fix the code to run with UE4 4.27.2 But when i package it the build does not work. I suspect i need to use this Xml file during the packaging process.

---

<div class="post-metadata">

**Author:** ![HashemShepard](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hashemshepard/32/1201564_2.png) [@HashemShepard](https://forums.unrealengine.com/u/HashemShepard)\
**Post date:** [August 20, 2022, 11:30pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736/4 "2022-08-20T23:30:46Z")

</div>

the recognition didnt work even after successful build , i used a custom flutter app to use google speech recognition and sent it over wifi to the game

---

<div class="post-metadata">

**Author:** ![shammi.seth](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shammi.seth](https://forums.unrealengine.com/u/shammi.seth)\
**Post date:** [September 8, 2022, 2:41pm UTC](https://forums.unrealengine.com/t/how-to-include-a-jar-file-while-packaging/457736/5 "2022-09-08T14:41:06Z")

</div>

HI are you able to share the solution. or share example. or resources. please.
