# \#java

**URL:** https://forums.unrealengine.com/tag/java/2217.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## ['package R does not exist' (Android)](https://forums.unrealengine.com/t/package-r-does-not-exist-android/2305600)

<div class="topic-metadata">

**Author:** [@jansenl](https://forums.unrealengine.com/u/jansenl)\
**Replies:** 1\
**Last updated:** [January 27, 2025, 1:19pm UTC](https://forums.unrealengine.com/t/package-r-does-not-exist-android/2305600 "2025-01-27T13:19:04Z")

</div>

Hello everyone, I need some help please! I’ve been working on a mobile project and testing it via the ‘Quick Launch’ menu. After changing the ‘Android Package Name,’ I’m getting the following error: LogPlayLevel: Error…

---

## [Additional method defined in APL.xml gameActivityClassAdditions not found](https://forums.unrealengine.com/t/additional-method-defined-in-apl-xml-gameactivityclassadditions-not-found/2003897)

<div class="topic-metadata">

**Author:** [@frontbutte](https://forums.unrealengine.com/u/frontbutte)\
**Replies:** 0\
**Last updated:** [September 3, 2024, 5:57pm UTC](https://forums.unrealengine.com/t/additional-method-defined-in-apl-xml-gameactivityclassadditions-not-found/2003897 "2024-09-03T17:57:15Z")

</div>

I’m having trouble adding java methods to UE 5.4’s Gameactivity through gameActivityClassAdditions. My APL.xml is successfully referenced through my main project’s build.cs. APL.xml contains this method isGooglePlayServi…

---

## [Read\\write files with UE5.2.1 + Android SDK 32](https://forums.unrealengine.com/t/read-write-files-with-ue5-2-1-android-sdk-32/1376318)

<div class="topic-metadata">

**Author:** [@digitalbug](https://forums.unrealengine.com/u/digitalbug)\
**Replies:** 7\
**Last updated:** [August 1, 2024, 3:03am UTC](https://forums.unrealengine.com/t/read-write-files-with-ue5-2-1-android-sdk-32/1376318 "2024-08-01T03:03:46Z")

</div>

I’m working on an application for Quest 2. I’m using UE5.2.1 + Android SDK 32 + Oculus Quest2. I want to write and read files from a folder in the root of the Oculus storage. For example “APP\_FOLDER”. When I was wor…

---

## [UE5.2 - Package Android Project - java.lang.OutOfMemoryError / ERROR: cmd.exe failed with args /c](https://forums.unrealengine.com/t/ue5-2-package-android-project-java-lang-outofmemoryerror-error-cmd-exe-failed-with-args-c/1669145)

<div class="topic-metadata">

**Author:** [@svkvarunkumar](https://forums.unrealengine.com/u/svkvarunkumar)\
**Replies:** 0\
**Last updated:** [February 6, 2024, 1:34am UTC](https://forums.unrealengine.com/t/ue5-2-package-android-project-java-lang-outofmemoryerror-error-cmd-exe-failed-with-args-c/1669145 "2024-02-06T01:34:27Z")

</div>

Hello I am trying to package a Android project MULTI:ASTC,DXT,ECT2 in UE5.2 Android Studio configuration Unreal Project Settings - Platform : Android/Android SDK Error \> Task :app:packageDebug…

---

## [Need advice on making Android game fullscreen](https://forums.unrealengine.com/t/need-advice-on-making-android-game-fullscreen/779429)

<div class="topic-metadata">

**Author:** [@RakibRahaman](https://forums.unrealengine.com/u/RakibRahaman)\
**Replies:** 2\
**Last updated:** [November 13, 2023, 12:24pm UTC](https://forums.unrealengine.com/t/need-advice-on-making-android-game-fullscreen/779429 "2023-11-13T12:24:09Z")

</div>

Hi all, I’m currently developing an Android game and I’m having some trouble getting it to display in fullscreen mode on certain devices. I’ve tried enabling the “Use Display Cutout Region” option, but there’s still a b…

---

## [Building Android Game for Target SDK API 33](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415)

<div class="topic-metadata">

**Author:** [@RakibRahaman](https://forums.unrealengine.com/u/RakibRahaman)\
**Replies:** 4\
**Last updated:** [November 8, 2023, 1:48am UTC](https://forums.unrealengine.com/t/building-android-game-for-target-sdk-api-33/1187415 "2023-11-08T01:48:17Z")

</div>

Hello fellow Unreal Engine developers! I recently encountered an issue while building my Android game for Target SDK 33 using Unreal Engine 4.27. I received an error during the packaging process, specifically related to…

---

## [4.27.2 Android Packaging Error 'java:372: error: cannot find symbol'](https://forums.unrealengine.com/t/4-27-2-android-packaging-error-java-error-cannot-find-symbol/790783)

<div class="topic-metadata">

**Author:** [@D\_Artagnan69](https://forums.unrealengine.com/u/D_Artagnan69)\
**Replies:** 22\
**Last updated:** [October 15, 2023, 6:31am UTC](https://forums.unrealengine.com/t/4-27-2-android-packaging-error-java-error-cannot-find-symbol/790783 "2023-10-15T06:31:11Z")

</div>

My game which used to package without any error is now failing with this error ‘UATHelper: Packaging (Android (ASTC)): Z:\\app\\src\\main\\java\\com\\epicgames\\ue4\\GooglePlayStoreHelper.java:372: error: cannot find symbol’ al…

---

## [How C++ and Java work together for Android system ?](https://forums.unrealengine.com/t/how-c-and-java-work-together-for-android-system/1307719)

<div class="topic-metadata">

**Author:** [@Aqshay](https://forums.unrealengine.com/u/Aqshay)\
**Replies:** 0\
**Last updated:** [September 22, 2023, 12:14pm UTC](https://forums.unrealengine.com/t/how-c-and-java-work-together-for-android-system/1307719 "2023-09-22T12:14:24Z")

</div>

Hello everyone ! Hope your projects are doing well ! We are currently working on a mobile game, and I’m starting to implement platform related logic (notification, ads, in-app purchases). For now, I managed to implemen…

---

## [Adding Custom Android Activity Java File](https://forums.unrealengine.com/t/adding-custom-android-activity-java-file/282844)

<div class="topic-metadata">

**Author:** [@pal\_2](https://forums.unrealengine.com/u/pal_2)\
**Replies:** 5\
**Last updated:** [September 15, 2023, 10:09am UTC](https://forums.unrealengine.com/t/adding-custom-android-activity-java-file/282844 "2023-09-15T10:09:01Z")

</div>

The engine uses GameActivity.java found at (Engien\\Build\\Android\\Java\\src\\com\\epicgames\\ue4) as the android activity when launching the application (referred to inside AndroidMenifest.xml) and places it inside your proje…

---

## [Get app to foreground on API response android platform.](https://forums.unrealengine.com/t/get-app-to-foreground-on-api-response-android-platform/1263681)

<div class="topic-metadata">

**Author:** [@M.AbdullahSultan](https://forums.unrealengine.com/u/M.AbdullahSultan)\
**Replies:** 0\
**Last updated:** [August 17, 2023, 7:46am UTC](https://forums.unrealengine.com/t/get-app-to-foreground-on-api-response-android-platform/1263681 "2023-08-17T07:46:03Z")

</div>

I am working on some blockchain stuff. For transaction purpose I have to jump on some other app and come back to Unreal App after Transaction API response. To jump to other app I am using LaunchURL node which is working …

---

## [Android packagin gradle error , cant Build file 'Z:\\build.gradle' line: 10](https://forums.unrealengine.com/t/android-packagin-gradle-error-cant-build-file-z-build-gradle-line-10/786570)

<div class="topic-metadata">

**Author:** [@Derfrix](https://forums.unrealengine.com/u/Derfrix)\
**Replies:** 0\
**Last updated:** [March 8, 2023, 6:10pm UTC](https://forums.unrealengine.com/t/android-packagin-gradle-error-cant-build-file-z-build-gradle-line-10/786570 "2023-03-08T18:10:22Z")

</div>

hello, please help, how can fix it this gradle error (unreal 5.1.1) doc.txt (2.4 KB)

---

## [Invalid maximum heap size: -XX:MaxHeapSize=4096m](https://forums.unrealengine.com/t/invalid-maximum-heap-size-xx-maxheapsize-4096m/473893)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_f63792e0](https://forums.unrealengine.com/u/anonymous_user_f63792e0)\
**Replies:** 2\
**Last updated:** [March 5, 2023, 2:23pm UTC](https://forums.unrealengine.com/t/invalid-maximum-heap-size-xx-maxheapsize-4096m/473893 "2023-03-05T14:23:41Z")

</div>

Hello, I just installed UE4 and was trying to launch a demo on my Android phone. I set the location of the SDK, launched the AndroidSetup.bat to download the NDK and then specified the path. But now when i’m compiling t…

---

## [env-\>GetMethodID returns null](https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844)

<div class="topic-metadata">

**Author:** [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 10:19am UTC](https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844 "2023-02-10T10:19:12Z")

</div>

I need to use JNI to start an NSD service on mobile (For NDI android plugin). I can package my app but it crashes when I call JNI because it can not find MethodID. Other C++ codes (for example NSI SDK) works because I …

---

## [Can't package project (Android ASTC) ue4.27.2](https://forums.unrealengine.com/t/cant-package-project-android-astc-ue4-27-2/497810)

<div class="topic-metadata">

**Author:** [@GTXColeggium](https://forums.unrealengine.com/u/GTXColeggium)\
**Replies:** 4\
**Last updated:** [January 27, 2023, 5:15pm UTC](https://forums.unrealengine.com/t/cant-package-project-android-astc-ue4-27-2/497810 "2023-01-27T17:15:38Z")

</div>

Hello, Im trying to package my project using Android ASTC, and everythng goes great until it actually tries to package project to .apk using gradle 6.1.1. Can someone tell me what jdk version Im supposed to install?

---

## [android packaging error](https://forums.unrealengine.com/t/android-packaging-error/722074)

<div class="topic-metadata">

**Author:** [@mtoon](https://forums.unrealengine.com/u/mtoon)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 6:28pm UTC](https://forums.unrealengine.com/t/android-packaging-error/722074 "2022-12-05T18:28:49Z")

</div>

i get a error that i don’t really understand so if someone can help me here the last lines of my logs (i put full logs as a txt) : UATHelper: Packaging (Android (ASTC)): \> Exception java.lang.NoClassDefFoundError: \> Cou…

---

## [SetupAndroid.bat UE4.25 Error](https://forums.unrealengine.com/t/setupandroid-bat-ue4-25-error/464836)

<div class="topic-metadata">

**Author:** [@Mathisxy](https://forums.unrealengine.com/u/Mathisxy)\
**Replies:** 18\
**Last updated:** [September 16, 2022, 1:02am UTC](https://forums.unrealengine.com/t/setupandroid-bat-ue4-25-error/464836 "2022-09-16T01:02:09Z")

</div>

Hello, I tried to install Android Studio for UE4.25. I upgraded my previous project from 4.24, where I used CodeWorks. Now I uninstalled CodeWorks, installed Android Studio and got a few errors when running the SetupAn…

---

## [Android broadcast receiver, autostart app on boot](https://forums.unrealengine.com/t/android-broadcast-receiver-autostart-app-on-boot/433572)

<div class="topic-metadata">

**Author:** [@DanielDurys](https://forums.unrealengine.com/u/DanielDurys)\
**Replies:** 2\
**Last updated:** [August 10, 2022, 1:41pm UTC](https://forums.unrealengine.com/t/android-broadcast-receiver-autostart-app-on-boot/433572 "2022-08-10T13:41:27Z")

</div>

How to make the application waiting for android boot broadcast receiver and autostart itself? I turn on device and I want the application to autostart. I heard of broadcast receiver class in java, but how to add this to…

---

## [Java System Variable set incorrectly?](https://forums.unrealengine.com/t/java-system-variable-set-incorrectly/620907)

<div class="topic-metadata">

**Author:** [@Goodgamejuli](https://forums.unrealengine.com/u/Goodgamejuli)\
**Replies:** 0\
**Last updated:** [August 3, 2022, 11:03pm UTC](https://forums.unrealengine.com/t/java-system-variable-set-incorrectly/620907 "2022-08-03T23:03:43Z")

</div>

I ran into an error with the java system variable which is set correctly but i tells me the opposite. Can you help me further?

---

## [\[Contract-PAID\] API dev to create system for communication between game and website](https://forums.unrealengine.com/t/contract-paid-api-dev-to-create-system-for-communication-between-game-and-website/598006)

<div class="topic-metadata">

**Author:** [@Aininia](https://forums.unrealengine.com/u/Aininia)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 3:32am UTC](https://forums.unrealengine.com/t/contract-paid-api-dev-to-create-system-for-communication-between-game-and-website/598006 "2022-07-08T03:32:26Z")

</div>

Received funding to develop a prototype. The Project Enable my game to communicate with an outside API in Javascript. There are approx. 5 types of Get and Put requests that I need done. Requirements 3+ Years Json Exp…

---

## [How to use Android Java .aar library?](https://forums.unrealengine.com/t/how-to-use-android-java-aar-library/434942)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_561baee7](https://forums.unrealengine.com/u/anonymous_user_561baee7)\
**Replies:** 20\
**Last updated:** [June 26, 2022, 10:11am UTC](https://forums.unrealengine.com/t/how-to-use-android-java-aar-library/434942 "2022-06-26T10:11:39Z")

</div>

I googled this quite a bit, but came out empty handed. There were some links but those related to source code version of UE. Before going down that path I decided to asks here whether there is some simple way to add and …

---

## [Cmd.exe failed with args](https://forums.unrealengine.com/t/cmd-exe-failed-with-args/491011)

<div class="topic-metadata">

**Author:** [@Qbaism](https://forums.unrealengine.com/u/Qbaism)\
**Replies:** 0\
**Last updated:** [November 17, 2021, 9:03am UTC](https://forums.unrealengine.com/t/cmd-exe-failed-with-args/491011 "2021-11-17T09:03:41Z")

</div>

well, good morning together, please enlight me. since two weeks or so i´ll trying to package an 426 project for android(quest2) with less fortune. to the end of last week, i followed this tut UNREAL ENGINE 4.25.1 …

---

## [Can't access to Java aar archive from C++ (android project)](https://forums.unrealengine.com/t/cant-access-to-java-aar-archive-from-c-android-project/490738)

<div class="topic-metadata">

**Author:** [@wab11](https://forums.unrealengine.com/u/wab11)\
**Replies:** 0\
**Last updated:** [November 9, 2021, 8:49am UTC](https://forums.unrealengine.com/t/cant-access-to-java-aar-archive-from-c-android-project/490738 "2021-11-09T08:49:26Z")

</div>

Hey! I’ve got a problem with accessing the class inside of the aar file The aar archive is correctly attached to the project, but the class is still not visible. JNIEnv \* env = FAndroidApplication :: GetJavaEnv (); /…

---

## [Crash on Android with NullPointerException](https://forums.unrealengine.com/t/crash-on-android-with-nullpointerexception/480537)

<div class="topic-metadata">

**Author:** [@justus10000](https://forums.unrealengine.com/u/justus10000)\
**Replies:** 11\
**Last updated:** [August 9, 2021, 9:06am UTC](https://forums.unrealengine.com/t/crash-on-android-with-nullpointerexception/480537 "2021-08-09T09:06:18Z")

</div>

Hi there! As the title suggests I am having trouble with a NullPointerException in the GooglePlayStoreHelper class on some Android devices. I am using the blueprint functions for in-app purchases and so far the system w…

---

## [Game crashes on start after upload to google play for testing](https://forums.unrealengine.com/t/game-crashes-on-start-after-upload-to-google-play-for-testing/486854)

<div class="topic-metadata">

**Author:** [@yasser2016](https://forums.unrealengine.com/u/yasser2016)\
**Replies:** 1\
**Last updated:** [August 3, 2021, 7:55am UTC](https://forums.unrealengine.com/t/game-crashes-on-start-after-upload-to-google-play-for-testing/486854 "2021-08-03T07:55:19Z")

</div>

Hey there I’m having a problem with running my game after uploading it to google play. The game crashes upon start - he stuck in the loading screen first msg XAPK File validation Failed and when Iclose and open again ……

---

## [Android Resore Purchase](https://forums.unrealengine.com/t/android-resore-purchase/486261)

<div class="topic-metadata">

**Author:** [@StAnger](https://forums.unrealengine.com/u/StAnger)\
**Replies:** 3\
**Last updated:** [July 22, 2021, 4:17pm UTC](https://forums.unrealengine.com/t/android-resore-purchase/486261 "2021-07-22T16:17:06Z")

</div>

In my game I have a single IAP that unlocks the full version of the game. The purchase itself works, all the information (price, currency, name, etc.) is displayed correctly. I was also able to make it non-consumable tha…

---

## [PhP search bar inside html file](https://forums.unrealengine.com/t/php-search-bar-inside-html-file/482890)

<div class="topic-metadata">

**Author:** [@SwiftKey\_yyuuu](https://forums.unrealengine.com/u/SwiftKey_yyuuu)\
**Replies:** 0\
**Last updated:** [May 5, 2021, 6:35pm UTC](https://forums.unrealengine.com/t/php-search-bar-inside-html-file/482890 "2021-05-05T18:35:12Z")

</div>

I’m making a movie website with html and css so in my html file I want to make a search bar using PHP to search for movies/actors I have 5 movies even though every movie I have made a html page for it so I want the user …

---

## [Play Assets Delivery Crash on Packaging for distribution](https://forums.unrealengine.com/t/play-assets-delivery-crash-on-packaging-for-distribution/482559)

<div class="topic-metadata">

**Author:** [@HakanErunsal](https://forums.unrealengine.com/u/HakanErunsal)\
**Replies:** 0\
**Last updated:** [April 27, 2021, 10:04pm UTC](https://forums.unrealengine.com/t/play-assets-delivery-crash-on-packaging-for-distribution/482559 "2021-04-27T22:04:49Z")

</div>

I am trying to use play assets delivery since i am having problems with obb file due to news on google play. And whenever i try to use it and package for shipping, this error shows up. Does anyone know how to fix it? It…

---

## [How to Generate Keystore for Google Play Distribution?](https://forums.unrealengine.com/t/how-to-generate-keystore-for-google-play-distribution/479851)

<div class="topic-metadata">

**Author:** [@Triple\_Sunsmith](https://forums.unrealengine.com/u/Triple_Sunsmith)\
**Replies:** 0\
**Last updated:** [March 6, 2021, 10:24pm UTC](https://forums.unrealengine.com/t/how-to-generate-keystore-for-google-play-distribution/479851 "2021-03-06T22:24:35Z")

</div>

Hi guys, Does anybody knows how to overcome a very annoying error that arises when trying to generate a keystore for Google play distribution? The method I’m following is in Unreal documentation (obviously not complete…

---

## [UE for Android with Java libs and Kotlin game logic?](https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407)

<div class="topic-metadata">

**Author:** [@travisfw](https://forums.unrealengine.com/u/travisfw)\
**Replies:** 1\
**Last updated:** [August 28, 2020, 1:21pm UTC](https://forums.unrealengine.com/t/ue-for-android-with-java-libs-and-kotlin-game-logic/460407 "2020-08-28T13:21:16Z")

</div>

TL;DR: For a prospective project, I would have to write most of an Android app in Java or Kotlin, including game logic, but not UI. Is this officially supported? I’m considering using UE for a future Android project. It…

---

## [ERROR release -Djava.source=1.7 -Djava.target=1.7](https://forums.unrealengine.com/t/error-release-djava-source-1-7-djava-target-1-7/470179)

<div class="topic-metadata">

**Author:** [@MatteoTV](https://forums.unrealengine.com/u/MatteoTV)\
**Replies:** 0\
**Last updated:** [August 23, 2020, 2:48am UTC](https://forums.unrealengine.com/t/error-release-djava-source-1-7-djava-target-1-7/470179 "2020-08-23T02:48:06Z")

</div>

Hello I have an error when I packa ge my games I have already tested java 7 and 10, always the same error.

[Next page](https://forums.unrealengine.com/tag/java/2217.md?match_all_tags=true&page=1&tags%5B%5D=java)
