Android device launch failed with unknown error

Hello,
I am having trouble launching my project on android device for testing purposes. For now I am following Android quick start guide and using Top Down template to get the hang of it. But the problem is I am not able to launch the project on my android device and its showing an unknown error.

I was pasting the log here but charcter limit was getting exceeded

screenshot the log so we can see the red

if you have ogl enabled it will not load
disable ogl and enable vulkan

This is the log after I disabled the ogl and enabled vulkan

Fix an installed Android app that isn’t working
Try the following steps if an app installed on your phone has any of these problems:

Crashing.
Won’t open.
Won’t respond.
Isn’t working properly. If the app that isn’t working is an Instant App, try these troubleshooting steps instead.
After each step, restart your phone to see if it fixed the issue.

Note: Some of these steps work only on Android 8.1 and up. Learn how to check your Android version.
Step 1: Restart & update
Restart your phone
Check for Android updates
Update the app
Step 2: Check for a larger app issue
Force stop the app
Clear the app’s cache & data
Sync device with Google servers
Uninstall the app
Contact the app developer
Important: If you tried the troubleshooting steps but still have trouble, contact us or the app developer.
If you can’t update any apps, or if you have trouble with Google apps, contact Google Play.
If you have trouble with one app but can use other apps without a problem, contact the app developer.

Greeting,

Its not the app that i am having trouble with. I am trying to launch an unreal template and test it on my android device but the launch keep failing.

android 4
jre8
jdk8
sdk 29
ndk 21b

different versions won’t work
looks like jre and jdk aren’t right

What versions do I need to work on?

as you see above
those are what the docs tell you to install
jre is currently 17, but you need version 8 or gradle will fail
jdk is at 20 something
but you need jdk 8 from the archives
android studio 2022 is latest
but you will not be able to build unless you download version 4 from the archives
those are what where used when they built the tools.

This is the log i got after installing jdk and jre 8, sdk 29 and ndk 21. launch is still failing. android studio was already version 4.

Note: I didnt install the jre seperately. i am using the default jre that comes with jdk 8.

I also updated the system environment variables as just installing the right versions of the above and restarting the system didn’t work.

Can it be because i have arm7 enabled not arm64 does not know if thats the problem I am just shooting in the dark.

look for the configure java app on your comp
in version it should say version 8
be sure it does (sometimes it shows as 1.8.x
otherwise I can’t help probably
its also essential you have dotnet 3.51 redist.
Maybe follow a couple utube vids like the gdxr one
if you think you have it right
then try a blank project with just a player start and try to cook it.

Screenshot 2022-10-12 134429

it is version 8

Also i have .net framework v4.8, v3.5.3, v3.0 and v2.something installed, is that a problem?

Edit1:

So my API level of android device was on API 31. After uninstalling and reinstallilng the correct API level, the old errors are gone and Its showing me the new error for which the log is pasted below.

Edit2:

I was able to solve the above error by just renaming the files d8 to dx but after launching the project i encountered another error which is specific to android 31 and above.

[Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present]

Edit3:

The issue of android version has a work around which is by disabling the splashscreen but the problem is that none of the project is working on my device I have a oneplus 9R which fails to run any project even a blank project.

If any one of the issues can be solved, Please revert soon, thanks in advance

it could be the arm7 setting
probably should be 64 bit
I don’t think that phone is arm.

dotnet 3.51 is an essential component for unreal’s uat pkg tool

possibly test on a different phone too

if ogl is enabled you will not be able to start it, it needs vulkan.

switched to arm64 coz thats what is in my android device.

dotnet 3.51 is present.

oculus plugins disabled (read it somewhere on the forums that might be causing the problem of failing to open the descriptor file)

tested on both ogl and vulkan enabled individually or both at the same time gives the same error : failed to open descriptor file.

has not tested on another android device will update it once done

sorry
I have no clue what a descriptor is.

I can’t tell why its not building
hope someone else can help

it is telling you to reinstall the sdk because its hooped
it also is saying you are using sdk 31
I suggest 29 or 30
you need to have command tools-latest and cmd tools for the particular sdk you have installed.

your sdk is definately set wrong.

cmd tools are latest and sdk is right as my device requires API 31 and sdk needs to be compatible with that API. The problem is not in building its when files are getting transfered to the android device and running it on that device. I am past the build problem. You can check my past edits for that.

edit1: I think i will consider this solved and post a new querry for the descriptor file as technically the problem of uknown error has solved.

Steps to fix -
Step 1: Restart & update. Restart your phone. Important: Settings can vary by phone. For more info, contact your device manufacturer.
Step 2: Check for a larger app issue. Force stop the app. You can usually force stop an app through your phone’s Settings app.

Regards,