Android Build Gray Screen, how to fix?

So was having a problem with my game where the Android build after the slapsh screen would just stay as gray and the game never stars, this same game works fine with PC and WebGL builds. I couldn’t find a solution for this so decided to create a new project, i added a sprite on it and build it (i did nothing else on this project) to test and the result was the same after the slapsh screen the screen just stay as gray nothing happens.

I’m using Unity 2021.1.6f1
The adroid skd and ndk is from unity itself

Anyone knows how to fix this?

Check the device log for any errors. You can use Unity - Manual: Android Logcat package to see the log from the device inside the editor.

Here is the logcat, the main errors seems to be:

Error : eglGetConfigAttrib Not Implemented: attribute EGL_NATIVE_VISUAL_TYPE
Error : eglGetConfigAttrib Unsupported attribute EGL_DEPTH_ENCODING_NV

Error Pay NfcAdapter is null while obtaining CardEmulation instance. [CONTEXT service_id=198 ]

7468502–917425–com.DefaultCompany.TesteAdroidBuild-logcat.txt (42.3 KB)

What kind of the device do you use to run the Android application? Is this an emulator, a chromebook, or a device with the intel cpu? From the log I can’t tell what kind of device that is, but it doesn’t look to be a standard ARM device, which is probably the reason why this issue happens.
We don’t support emulators or translators. If you have a chromebook, then you should select x86 / x64 architectures in player settings (these options might require a newer Unity patch version than the one you use right now, I don’t remember specific version numbers where chromeOS support was added).

I’m using Bluestacks emulator, it used to work, this will be the norm going forward? Emulator is a pretty handy feature to test out builds, it’s kind sad it doesn’t work anymore.

We’ve never supported emulators, so internally we never test if Unity works on them.
You can try disabling “Optimised frame pacing” option in player settings. I think I’ve seen some threads which claimed that it fixed emulator related issues for them, however this is just a guess.

hi @EDevJogos , having the same issue here (2021.3.1f1), do you achieve to solve it?

Tried unity AR latest version on a android 11 and the have the same problem when running, the screen is gray even when camera is allowed.

Same problem. Not using any emulators. In some mobile devices don’t have this problem. My mobile phone after splash screen is gray.