hello,
i tried to build an LWRP project for android by using default LWRP sample …
but got black screen on running it on android!?
i’m using Unity 2018.4.6f1 + IL2CPP + for android 7.1.1 config…
howto fix that?
Which device?
Try submitting a bug report.
Then try disabling stuff in player settings. Disabling Vulkan, GPU skinning etc and see if that helps.
Try OpenGLES graphic API … I experienced the same thing on Vulkan,
I had the same issue with the LWRP on an Android device in 2019 (I forget which version exactly, I’d have to look it up) and unfortunately wasn’t able to get enough information from the user to resolve the issue on their device, so I don’t have any suggestions but consider me another data point about black screen with LWRP.
Well i found a solution. in your LWRP scriptable object under Advance settings. You should disable SRP batching.
and what about URP on 2019.3.x??
Well i haven’t used 2019.3 yet. I am not sure about it
I am not getting the camera view showing using the latest ARFoundation and ARCore with 2019.3.04b
Is there a workaround?
We too have the same problem in 2019.2, though I am still in the process of pinpointing which exact setting it is.
With a completely “fresh” created LWRP asset it works fine, with our LWRP asset we migrated from 2018.3 it doesn’t (did not try disabling the SRP Batching yet, I am currently going through all options step by step)
We also noticed that:
- This does not happen if we build from the editor, only if we build on CI / with batchmode
- If there is “oevrlay” ui rendered, it will be randomly “smeared” across the screen instead of producing the blakc screen
Do the rest of you have the problem even with building from the editor?
Yes, It’s happening building from the editor.
Unity 2019.2.13f1
It’s an old thread, but I had a hard time finding the solution so posting it here in case it helps anyone.
TL;DR:
Vulkan and URP don’t seem to play well together on some Android devices.
We started getting that infamous black screen when we upgraded to Unity 2019.4.8f1. As the OP states, even in this Unity version, building the URP sample project results in a black screen on Android.
Disabling Vulkan in Player Settings > Graphic APIs resolves the issue.
Thanks man, that solved the issue!
It’s more that Vulkan support has been progressively worse ever since it was first introduced. For Android, they might as well remove it now, it’s unreliable.