Texture creation failed. 'R8G8B8A8_SRGB' is not supported for Sample usage on this platform

Hello,

I got an issue when I want to try my application on a phone which is working with Android 6.
The same application works perfectly on a phone with Android 9.

Here the error I got :

11-09 22:20:52.729: E/Unity(28332): Texture creation failed. ‘R8G8B8A8_SRGB’ is not supported for Sample usage on this platform. Use ‘SystemInfo.IsFormatSupported’ C# API to check format support.
11-09 22:20:52.729: E/Unity(28332): UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Logger:Log(LogType, Object, Object)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Debug:LogError(Object, Object)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Texture:ValidateFormat(GraphicsFormat, FormatUsage) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Graphics/Texture.cs:474)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Texture2D:.ctor(Int32, Int32, GraphicsFormat, TextureCreationFlags, Int32, IntPtr) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Graphics/Texture.cs:492)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Texture2D:.ctor(Int32, Int32, GraphicsFormat, TextureCreationFlags) (at /Users/bokken/buildslave/unity/build/Runtime/Export/Graphics/Texture.cs:502)
11-09 22:20:52.729: E/Unity(28332): UnityEngine.Experimental.Rendering.Universal.Light2DLookupTexture:CreateFalloffLookupTexture() (at D:\Documents Perso\Projets\Unity\FC\FC V0
11-09 22:20:52.844: E/Unity(28332): NullReferenceException
11-09 22:20:52.844: E/Unity(28332): at (wrapper managed-to-native) UnityEngine.Texture.set_filterMode(UnityEngine.Texture,UnityEngine.FilterMode)
11-09 22:20:52.844: E/Unity(28332): at UnityEngine.Experimental.Rendering.Universal.Light2DLookupTexture.CreateFalloffLookupTexture () [0x00019] in D:\Documents Perso\Projets\Unity\FC\FC V0.873\FC V0.873\Library\PackageCache\com.unity.render-pipelines.universal@8.2.0\Runtime\2D\Passes\Utility\Light2DLookupTexture.cs:76
11-09 22:20:52.844: E/Unity(28332): at UnityEngine.Experimental.Rendering.Universal.RendererLighting.GetFalloffLookupTexture () [0x00010] in D:\Documents Perso\Projets\Unity\FC\FC V0.873\FC V0.873\Library\PackageCache\com.unity.render-pipelines.universal@8.2.0\Runtime\2D\Passes\Utility\RendererLighting.cs:406
11-09 22:20:52.844: E/Unity(28332): at UnityEngine.Experimental.Rendering.Universal.RendererLighting.SetShapeLightShaderGlobals (UnityEngine.Rendering.CommandBuffer cmdBuffer) [0x000a4] in D:\Documents Perso\Projets\Unity\FC\FC V0.873\FC V0.873\Library\PackageCache\com.unity.render-pipelines.universal@8.2.0\Runtime\2D\Passes\Utility\RendererLighting.cs:3

I think the error is link to the UnityEngine.Experimental.Rendering.Universal asset.
I would like to know first if this asset has to work with an Android minimum version ?
If not, there is something to do to solve this error ?

Thank you for your answer.

Vianney.

Hello, I had the same problem. To fix this, the URP package needs to be version 11.0.0 or higher. For this, I upgraded the Unity version I used from 2020.3.25f1 to 2021.2.19f1.