Been stuck on this problem for 9 days at time of posting. This is my first time trying to run a project on android, and it has been a pain.
I have been trying to launch my UE5 project on a Samsung Galaxy Tab A, but have so far been unsuccessful. I have dug through the forums for a long while, trying numerous configurations while getting the same results.
I have also tried multiple ways of installing or running on the Android device.
Here are the results:
Quick Launch / Launch from Project Launcher:
Any time I try to do either, the launch process gets hung after this part each and every time, regardless of what I do (unless I incur an error).
Project name has been omitted, replaced by *
LogPlayLevel: Writing symbols to C:\Users\JC180\Documents\Unreal Projects\\Binaries/Android\_Symbols_v1/*-arm64\libUnreal.so
LogPlayLevel: ====1/22/2023 2:05:18 PM====COMPLETED MAKE APK=======================================================================
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: Did not find package with receiver
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: 1
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: 1
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: 1
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
LogPlayLevel: GetPackageInfo ReturnValue: 1
LogPlayLevel: GetPackageInfo ReturnValue: com.*.*
Each and every time, this happens. There are no errors or red of any sort in the rest of the log either, and the only message that might come after it is a maintenance log, presumably garbage collection.
Copy project to device and install .apk from there:
I have heard conflicting information on where or not this is a valid method. So far, any time I do this the device gives me the “App not installed” error. Rather vague, isn’t it? Because of that, it is next to impossible to get a solution, since everyone who gets the error likely has their own issues with independent solutions.
A final answer on whether this method is deprecated would also be nice.
Install the project using .BAT file:
I have also heard conflicting information about this method, but the fact that it is even present in the engine makes me think that it should work.
The error happens in the uninstall section (my thinking is that it is because there is no existing file to uninstall, but my unfamiliarity with Java makes me uncertain). Past that, the file hangs on the “Performing streamed install” message. I have left it running for quite a while without result.
Here is the log of what happens:
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>setlocal
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>if NOT “” == “” (call \HostWin64\Android\SetupEnvironmentVars.bat )
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>set ANDROIDHOME=C:\Users\JC180\AppData\Local\Android\Sdk
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>if “C:\Users\JC180\AppData\Local\Android\Sdk” == “” set ANDROIDHOME=C:/Users/JC180/AppData/Local/Android/Sdk
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>set ADB=C:\Users\JC180\AppData\Local\Android\Sdk\platform-tools\adb.exe
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>set AFS=.\win-x64\UnrealAndroidFileTool.exe
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>set DEVICE=
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>if not “” == “” set DEVICE=-s
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>for /F “delims=” %A in (‘C:\Users\JC180\AppData\Local\Android\Sdk\platform-tools\adb.exe shell “echo $EXTERNAL_STORAGE”’) do @ set STORAGE=%A
Uninstalling existing application. Failures here can almost always be ignored.
C:\Users\JC180\Documents\Unreal Projects\\AndroidPackages\Android Pack 15 (VV 2)>C:\Users\JC180\AppData\Local\Android\Sdk\platform-tools\adb.exe uninstall com.*.*
Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: com.*.*
at com.android.server.pm.Settings.getInstallerPackageNameLPr(Settings.java:5057)
at com.android.server.pm.PackageManagerService.getInstallerPackageName(PackageManagerService.java:28962)
at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:28968)
at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:24893)
at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:933)
at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:929)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:134)
at android.os.ShellCommand.exec(ShellCommand.java:96)
at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:29777)
at android.os.Binder.shellCommand(Binder.java:602)
at android.os.Binder.onTransact(Binder.java:500)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3247)
at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:5425)
at android.os.Binder.execTransact(Binder.java:705)
Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.
C:\Users\JC180\Documents\Unreal Projects\*\AndroidPackages\Android Pack 15 (VV 2)>C:\Users\JC180\AppData\Local\Android\Sdk\platform-tools\adb.exe install *-arm64.apk
Performing Streamed Install
*Project name has once again been omitted
I have also tried each of these in an empty project, with the exact same results
Any help (preferably anything that works or gets me closer to getting this working) is greatly appreciated.