# Java:125: error: cannot find symbol

**URL:** <https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, UE4, UE4-27, question\
**Created:** [June 14, 2022, 7:51am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470 "2022-06-14T07:51:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vagronte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vagronte](https://forums.unrealengine.com/u/Vagronte)\
**Post date:** [June 14, 2022, 7:51am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/1 "2022-06-14T07:51:36Z")

</div>

WHEN I TRY TO PACKAGE MY ANROID PROJECT IT SAYS java:125: error: cannot find symbol

 ![image_2022-06-14_113050153](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/4/ab45d12421d467c65c237a229c22593d6f44218d.png)

---

<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:** [June 14, 2022, 10:44pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/2 "2022-06-14T22:44:16Z")

</div>

show me your settings in android and android sdk

---

<div class="post-metadata">

**Author:** ![Vagronte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vagronte](https://forums.unrealengine.com/u/Vagronte)\
**Post date:** [June 15, 2022, 2:47am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/3 "2022-06-15T02:47:17Z")

</div>

![Project Settings 15-06-2022 08_11_42](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/e/73ea18509553dc26743e14546c28d46831b7154f.png)  
 ![Project Settings 15-06-2022 08_11_55](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/f/53f5387b6e73bccc18107dcde4b2e514a48ddb87.png)  
 ![Project Settings 15-06-2022 08_13_04](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/6/0e6d1e0fba7c65e868045ef2d2a796cdeb5b4a64.png)  
 ![Project Settings 15-06-2022 08_13_11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/d/3/5d3b858a13341c687f831fd9b49b110585fb32ef.png)  
 ![Project Settings 15-06-2022 08_13_25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/074b289e0a89a315b37de6e2f594bcb703fe4c17.png)

---

<div class="post-metadata">

**Author:** ![Vagronte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vagronte](https://forums.unrealengine.com/u/Vagronte)\
**Post date:** [June 15, 2022, 2:47am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/4 "2022-06-15T02:47:53Z")

</div>

![Welcome to Android Studio 15-06-2022 08_09_49](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/2/df2a4caefaba44347bbe662b7341c7bcd845d908.png)  
 ![Welcome to Android Studio 15-06-2022 08_10_28](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/8/6783d993876b579720be2e8f8ce443758fa11b3e.png)  
 ![Welcome to Android Studio 15-06-2022 08_10_35](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/e/27ee8c31fd76a50875e684a53e775d88248468c1.png)  
 ![Welcome to Android Studio 15-06-2022 08_10_40](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/e/96e3b316558cd729f68a574bbd76a99148ad6b03.png)  
 ![Welcome to Android Studio 15-06-2022 08_10_48](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/0/0c09fe6e3bef790c7b5f4ed15ab39ce75fd71115.png)

---

<div class="post-metadata">

**Author:** ![Vagronte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vagronte](https://forums.unrealengine.com/u/Vagronte)\
**Post date:** [June 15, 2022, 2:48am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/5 "2022-06-15T02:48:13Z")

</div>

![Welcome to Android Studio 15-06-2022 08_11_01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/7/4/074f5d77208ce6ba40daf6f0231e14c0edfd41c8.png)  
 ![Welcome to Android Studio 15-06-2022 08_11_08](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/1/a/a1ad1824fdea1c1d7fbb41b120cc34d5ca80a1dd.png)  
 ![Welcome to Android Studio 15-06-2022 08_11_14](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/9/c7920812b2db081f433b646b731b1fe7e958805c.png)

---

<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:** [June 15, 2022, 8:34am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/6 "2022-06-15T08:34:33Z")

</div>

you probably have a lot of space) installed all in a row) 😁  
try and pack and show me log

 ![chrome_UFoqBN7Jho](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/1/a/b1a3615f8f251f762a668bf367e75d7c00480dfd.png)

---

<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:** [June 15, 2022, 8:36am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/7 "2022-06-15T08:36:11Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/a/2ca42d4cb024316e5971592c1c723249a027e0b5.png)  
if so, did you create the key?

---

<div class="post-metadata">

**Author:** ![Vagronte](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vagronte](https://forums.unrealengine.com/u/Vagronte)\
**Post date:** [June 17, 2022, 4:15pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/8 "2022-06-17T16:15:36Z")

</div>

It really Workeeedd!!! Thanks man ive had this problem for weeks…

---

<div class="post-metadata">

**Author:** ![Homuri\_hkr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homuri\_hkr](https://forums.unrealengine.com/u/Homuri_hkr)\
**Post date:** [July 7, 2022, 2:34am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/9 "2022-07-07T02:34:30Z")

</div>

Bro you saved my life, I got the exact same error as the original post and this did work for me. Could you explain a bit more why disable API 33 will work?

Best

---

<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:** [July 7, 2022, 4:26am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/10 "2022-07-07T04:26:01Z")

</div>

in short? I don’t use Android Studio, but I know what problems can arise with it…  
I have it connected sdk33… but there are no phones there 😂  
Look

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/c/11ce7a2fa2cde4cd49f28714b661c282d435f876.png)  
 ![chrome_YxMfAA1QcR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/0/8/9088ebf994521edfc52bc60ca96677736f990ad3.png)

so you don’t lose anything) the time spent on finding and correcting the problem will not pay for itself even in a year 😅 Why? even on sdk 32 there are still few devices

 ![chrome_Azi7r6AHs4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/d/80dca6ebc606cc0d2ed0d062f716d96d71ff1def.png)

---

<div class="post-metadata">

**Author:** ![Homuri\_hkr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Homuri\_hkr](https://forums.unrealengine.com/u/Homuri_hkr)\
**Post date:** [July 7, 2022, 6:15am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/11 "2022-07-07T06:15:38Z")

</div>

lol That makes sense, thanks

---

<div class="post-metadata">

**Author:** ![NIDAL\_NIJM\_GAMES](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nidal_nijm_games/32/1213063_2.png) [@NIDAL\_NIJM\_GAMES](https://forums.unrealengine.com/u/NIDAL_NIJM_GAMES)\
**Post date:** [July 18, 2022, 4:49am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/12 "2022-07-18T04:49:06Z")

</div>

Man, you are a Genius!!! Yes, just uninstalling the Android SDK 33 and installing SDK 32 worked for me. But before this, I had to uninstall the Command Line Tools 33 and Install 29.03, also install jdk-8u301-windows-x64 and then manually set the SDK paths.

---

<div class="post-metadata">

**Author:** ![victorgallon99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@victorgallon99](https://forums.unrealengine.com/u/victorgallon99)\
**Post date:** [July 18, 2022, 8:07am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/13 "2022-07-18T08:07:35Z")

</div>

thanks for the help java 122 123 125 does not appear anymore, but I have this as a result

 ![imagen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/2/4626894b963a32b42e994a411c65966d8bd6fa52.png)

---

<div class="post-metadata">

**Author:** ![danniermiayas55](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danniermiayas55/32/912619_2.png) [@danniermiayas55](https://forums.unrealengine.com/u/danniermiayas55)\
**Post date:** [August 4, 2022, 7:27am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/14 "2022-08-04T07:27:08Z")

</div>

respect man

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [November 11, 2022, 12:21pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/15 "2022-11-11T12:21:38Z")

</div>

Oh my God, man, this was so frustrating… The same project was packaging just fine in UE5 but it was not in 4.27.2, I wasted so many hours trying to identify the issue.  
This is going to increase my hate against Android Studio (by default it installed the Android 33 SDK).  
Thank you for the help!

---

<div class="post-metadata">

**Author:** ![AtonVision](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AtonVision](https://forums.unrealengine.com/u/AtonVision)\
**Post date:** [March 1, 2023, 12:49pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/16 "2023-03-01T12:49:19Z")

</div>

I got problem when I delete sdk 33 when I open android studio it needs me setup sdk 33 again again@!

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/1/0/5100bbb20348dc3e763858de78d723b87fa154e9.png)

---

<div class="post-metadata">

**Author:** ![D\_Artagnan69](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@D\_Artagnan69](https://forums.unrealengine.com/u/D_Artagnan69)\
**Post date:** [March 14, 2023, 5:16pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/17 "2023-03-14T17:16:30Z")

</div>

I did that but then I started getting failed with args MyProject\Intermediate\Android\gradle\rungradle.bat error. I have reinstalled Android Studio many times and still nothing is working. Please help.

---

<div class="post-metadata">

**Author:** ![rz1974gmail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rz1974gmail](https://forums.unrealengine.com/u/rz1974gmail)\
**Post date:** [April 20, 2023, 8:19am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/18 "2023-04-20T08:19:19Z")

</div>

Uninstall SDK 33 and remain SDK 31 works for me, thanks

---

<div class="post-metadata">

**Author:** ![lionkingshi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lionkingshi](https://forums.unrealengine.com/u/lionkingshi)\
**Post date:** [June 1, 2023, 6:34am UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/19 "2023-06-01T06:34:35Z")

</div>

![Screenshot 2023-06-01 142951](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/f/a/7fa29aaa222efea585be41d1eb3f772cda57f9d3.png)

a better way and no need to uninstall the SDK 33:  
Project settings → Platforms → Android SDK → Set API level to android-31

---

<div class="post-metadata">

**Author:** ![O-STUDIO](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/o-studio/32/718725_2.png) [@O-STUDIO](https://forums.unrealengine.com/u/O-STUDIO)\
**Post date:** [June 23, 2023, 4:47pm UTC](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470/20 "2023-06-23T16:47:25Z")

</div>

When I package my project with these settings the game doesn’t open on an Android 13 device ?!!

[Next page](https://forums.unrealengine.com/t/java-error-cannot-find-symbol/581470.md?page=2)
