前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【错误记录】Unity 安卓打包报错( Platform Android with graphics API OpenGLES3 is not supported with HDRP )

【错误记录】Unity 安卓打包报错( Platform Android with graphics API OpenGLES3 is not supported with HDRP )

作者头像
韩曙亮
发布2023-03-30 17:56:26
1.3K0
发布2023-03-30 17:56:26
举报
文章被收录于专栏:韩曙亮的移动开发专栏

文章目录

一、 报错信息


在 Unity 编辑器中 , 选择 " 菜单栏 | File | Build Settings " 选项 , 编译 Android Apk 文件 ;

在这里插入图片描述
在这里插入图片描述

报如下错误 :

代码语言:javascript
复制
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 图形引擎 ;

在这里插入图片描述
在这里插入图片描述
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022-11-21,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 文章目录
  • 一、 报错信息
  • 二、 解决方案
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档