文章目录
一、 报错信息
在 Unity 编辑器中 , 选择 " 菜单栏 | File | Build Settings " 选项 , 编译 Android Apk 文件 ;

报如下错误 :
BuildFailedException: Platform Android with graphics API OpenGLES3 is not supported with HDRP, use the Vulkan graphics API instead.
Change the platform/device to a compatible one or remove incompatible graphics APIs.
UnityEditor.Rendering.HighDefinition.HDRPPreprocessBuild.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.render-pipelines.high-definition@10.10.0/Editor/BuildProcessors/HDRPPreprocessBuild.cs:78)
UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at <dbd4d07218194e5c9818b750c6847ce1>:0)
UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at <dbd4d07218194e5c9818b750c6847ce1>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

二、 解决方案
报错信息 Platform Android with graphics API OpenGLES3 is not supported with HDRP, use the Vulkan graphics API instead.
, HDRP不支持带有图形API OpenGLES3的平台Android,请使用Vulkan图形API代替 ;
HDRP 是 高清渲染管线 , 英文全称为 High Definition Render Pipeline ;
HDRP 的 Unity 工程 如果导出 Android 平台的应用 , 不能选择 OpenGLES3 作为导出的安卓平台引擎 , 必须选择 Vulkan 引擎 API ;
在 Unity 编辑器 中 , 选择 " 菜单栏 | File | Build Settings | Player Settings… " , 早 Player Settings 对话框中 , 选择 Android 面板 , 选择 Other Settings 选项 , 修改其中的 " Graphics APIs " 设置 , 删除 OpenGLES2 和 OpenGLES3 选项 , 只保留 Vulkan 选项 ;

删除后的效果 : 只保留一个 Vulkan 图形引擎 ;
